Category : assets

I am trying to load SQLite DB in Flutter for Windows (it’s working on Android), but I receive an exception, my code is : // Copy from asset ByteData data = await rootBundle.load(join("assets", "mydb.sqlite")); List<int> bytes = data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes); I receive this exception : [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Unable to load asset: assetsmydb.sqlite #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:224:7) ..

Read more

I am trying to load SQLite DB in Flutter for Windows (it’s working on Android), but I receive an exception, my code is : // Copy from asset ByteData data = await rootBundle.load(join("assets", "mydb.sqlite")); List<int> bytes = data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes); I receive this exception : [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Unable to load asset: assetsmydb.sqlite #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:224:7) ..

Read more