mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-05-20 14:26:23 +08:00
fix(解决未初始化flutter.db导致的组件tab,白屏的情况):
This commit is contained in:
@ -18,7 +18,7 @@ class Provider {
|
||||
} catch (e) {
|
||||
print("Error $e");
|
||||
}
|
||||
if (db == null && isCreate) {
|
||||
if (isCreate) {
|
||||
ByteData data = await rootBundle.load(join("assets", "app.db"));
|
||||
List<int> bytes =
|
||||
data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
|
||||
|
Reference in New Issue
Block a user