Skip to content

How to use SqlitePersistentStorage on Android #197

Closed Answered by 781flyingdutchman
FluffyDiscord asked this question in Q&A
Discussion options

You must be logged in to vote

I suggest separating the trackTasks call, and running it with a slight delay:
Future.delayed(const Duration(milliseconds: 50), (_) => FileDownloader().trackTasks())

The database initialization is async, but not awaited so I think what's happening here is that you call trackTasks when the DB initialization is still running. I'll look into a more elegant solution, but please try this for now

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@FluffyDiscord
Comment options

Comment options

You must be logged in to vote
1 reply
@FluffyDiscord
Comment options

Answer selected by FluffyDiscord
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants