Comments (8)
Hello.
I have this trouble.
Do you have any solution?
If I will do it then I post it here.
from sqflite.
Hello guys,
I do have the same problem. It would be great if someone could post a solution.
from sqflite.
What version of sqflite are you using? I recommend using the latest version (sqflite: '>=0.8.4'
in pubspec.yaml
)
from sqflite.
Indeed there seems to be an issue with the latest dev version (cast method has been removed from List/Map). I'll take a look tomorrow....
from sqflite.
I was not able to reproduce using the lastest flutter dev/beta version and I update the package with deprecation warning fix (0.8.5). Can you try again (and check my troubleshoot section here: https://github.com/tekartik/sqflite/blob/master/doc/troubleshooting.md)
from sqflite.
Okay, I found my mistake:
I forgot the <String, dynamic>
at the toMap()
method (Map<String, dynamic> toMap()
)
from sqflite.
yes indeed. That's definitely a must for dart 2; I had many crashes with that have required some fixes in the library itself (that's why I recommend the implicit-casts: false
which sounds noisy at first but helps catching such issues. Good that you found it!
from sqflite.
I added a note in the troubleshooting section on this specific common issue: https://github.com/tekartik/sqflite/blob/master/doc/troubleshooting.md#cast-error
from sqflite.
Related Issues (20)
- error HOT 2
- Intermittent Data Incompleteness Issue When Copying SQLite Database File for Backup HOT 1
- Adding Offline Syncing to Online Database HOT 2
- Cursors HOT 1
- Support for .sql files HOT 2
- COLLATE NOCASE is not supporting in web build
- [sqflite_common_ffi_web 0.4.3] - db is not accessible in Android Chrome HOT 7
- Update PRAGMA version in windows
- SQLite Upgrade? HOT 2
- ConflictAlgorithm.replace deletes the row with FOREIGN KEY ON DELETE CASCADE ON UPDATE NO ACTION
- power function not supported HOT 1
- Inserting a row after clearing a table is not working HOT 2
- Can you tell me the general area on how to create a stream/watch a table? HOT 3
- Possibility to create functions? HOT 1
- Not an error as an error HOT 2
- Android Blob Lookup Fixed? HOT 1
- java.lang.IllegalArgumentException: Invalid token limit HOT 3
- sqlflite web db not persistent HOT 2
- Cursor closed despite moveNext() returning true HOT 1
- Macos - SqfliteFfiException(sqlite_error: 14, , open_failed: SqliteException(14): while opening the database, bad parameter or other API misuse, bad parameter or other API misuse (code 21)}) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqflite.