Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app can't be launched on Linux #5427

Closed
g123k opened this issue Jun 21, 2024 · 0 comments · Fixed by #5431
Closed

The app can't be launched on Linux #5427

g123k opened this issue Jun 21, 2024 · 0 comments · Fixed by #5431
Labels
🐛 bug Something isn't working linux

Comments

@g123k
Copy link
Collaborator

g123k commented Jun 21, 2024

Error message:

Bad state: databaseFactory not initialized
databaseFactory is only initialized when using sqflite. When using `sqflite_common_ffi`
You must call `databaseFactory = databaseFactoryFfi;` before using global openDatabase API

	#0      databaseFactory.<anonymous closure> (package:sqflite_common/src/sqflite_database_factory.dart:29:7)
	#1      databaseFactory (package:sqflite_common/src/sqflite_database_factory.dart:33:6)
	#2      getDatabasesPath (package:sqflite_common/sqflite.dart:105:38)
	#3      LocalDatabase.getLocalDatabase (package:smooth_app/database/local_database.dart:62:33)
	#4      _init1 (package:smooth_app/main.dart:137:40)
	<asynchronous suspension>
	#5      _SmoothAppState._init2 (package:smooth_app/main.dart:182:5)
	<asynchronous suspension>
	#6      _FutureBuilderState._subscribe.<anonymous closure> (package:flutter/src/widgets/async.dart:624:31)
	<asynchronous suspension>

Part of

@teolemon teolemon added 🐛 bug Something isn't working linux labels Jun 21, 2024
@g123k g123k linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working linux
Development

Successfully merging a pull request may close this issue.

2 participants