Coder Social home page Coder Social logo

Comments (8)

VadyaVL avatar VadyaVL commented on July 30, 2024

Hello.
I have this trouble.
Do you have any solution?

If I will do it then I post it here.

from sqflite.

stnieder avatar stnieder commented on July 30, 2024

Hello guys,
I do have the same problem. It would be great if someone could post a solution.

from sqflite.

alextekartik avatar alextekartik commented on July 30, 2024

What version of sqflite are you using? I recommend using the latest version (sqflite: '>=0.8.4' in pubspec.yaml)

from sqflite.

alextekartik avatar alextekartik commented on July 30, 2024

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.

alextekartik avatar alextekartik commented on July 30, 2024

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.

ralph-bergmann avatar ralph-bergmann commented on July 30, 2024

Okay, I found my mistake:

I forgot the <String, dynamic> at the toMap() method (Map<String, dynamic> toMap())

from sqflite.

alextekartik avatar alextekartik commented on July 30, 2024

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.

alextekartik avatar alextekartik commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.