RIP-Comm / sossoldi

"Sossoldi" is a wealth management / personal finance / Net Worth tracking app, made with Flutter.
MIT License
262 stars 73 forks source link

DB correction + minor graphic fix #74

Closed lucaantonelli closed 1 year ago

lucaantonelli commented 1 year ago

Resolved some error with the new db fields. Removed boolean type as it doesn't exist in the sqlite plugin: bool is not a supported SQLite type. Use INTEGER and 0 and 1 values. (source)

mikev-cw commented 1 year ago

I'm getting this on Mac OS:

I/flutter (14356): WARNING I/flutter (14356): I/flutter (14356): Invalid argument true with type bool. I/flutter (14356): Only num, String and Uint8List are supported. See https://github.com/tekartik/sqflite/blob/master/sqflite/doc/supported_types.md for details I/flutter (14356): I/flutter (14356): This will throw an exception in the future. For now it is displayed once per type.

Is your commit related?

EDIT: I'm pretty sure this is an old Warn, so the correct question should be: is your commit intended to solve also this?

lucaantonelli commented 1 year ago

I'm getting this on Mac OS:

I/flutter (14356): WARNING I/flutter (14356): I/flutter (14356): Invalid argument true with type bool. I/flutter (14356): Only num, String and Uint8List are supported. See https://github.com/tekartik/sqflite/blob/master/sqflite/doc/supported_types.md for details I/flutter (14356): I/flutter (14356): This will throw an exception in the future. For now it is displayed once per type.

Is your commit related?

EDIT: I'm pretty sure this is an old Warn, so the correct question should be: is your commit intended to solve also this?

Yes, the commit solves also that problem, i think it shows up to you for the cached db, if you remove and reinstall the app it shouldn't appear again, at least for me that worked fine.

EDIT: I've seen the error was showing up and i verified that is for the true value used in bank account for the main account query, amended the commit to switch true into 1 in bank_account.dart, now the error is not shown.