Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Dependency error

Tags:

flutter

how to add Sqflite dependency in flutter?

dependencies:
  flutter:
    sdk: flutter


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.0
  sqflite: any
  english_words: "^3.1.0"
like image 626
Amanpreet Singh Avatar asked Sep 20 '25 05:09

Amanpreet Singh


1 Answers

This is the correct way of doing it. Try running packages get (again).

You can specify versions with either the exact version sqflite: ^0.8.9, a range sqflite: >=0.8.0 <0.9.9 or just sqflite: any, which will always get you the latest version.

There is an in-depth guide on this topic available.

like image 184
creativecreatorormaybenot Avatar answered Sep 21 '25 19:09

creativecreatorormaybenot