tekartik / sqflite

SQLite flutter plugin
BSD 2-Clause "Simplified" License
2.88k stars 526 forks source link

sqflite warning #1009

Open bhumika14afk opened 1 year ago

bhumika14afk commented 1 year ago

I am facing this warning using the sqflite package

*** sqflite warning ***

You are changing sqflite default factory.
Be aware of the potential side effects. Any library using sqflite
will have this factory as the default for all operations.

*** sqflite warning ***

I have added

sqfliteFfiInit();
databaseFactoryOrNull = databaseFactoryFfi;

in my void main.

How to remove these warnings

sukhcha-in commented 1 year ago

Noticed the same warning!

bhumika14afk commented 1 year ago

Noticed the same warning!

databaseFactoryOrNull = null;
sqfliteFfiInit();

I have used this in my void main. And the warning is no longer shown.

ZiiwareJordanc commented 1 year ago

Noticed the same warning!

databaseFactoryOrNull = null;
sqfliteFfiInit();

I have used this in my void main. And the warning is no longer shown.

Even with adding these changes i still seem to be getting the same issue. I have also updated to the newest version of the dependancy as mentioned in a separate post similar to this issue but this also does not work for me.