mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: drift not working on web
This commit is contained in:
parent
fa30e634b4
commit
d3505e99b7
4 changed files with 13334 additions and 1 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
|
@ -81,6 +81,7 @@
|
||||||
"args": [
|
"args": [
|
||||||
"--web-port",
|
"--web-port",
|
||||||
"9090",
|
"9090",
|
||||||
|
"--web-experimental-hot-reload",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,10 @@ class AppDatabase extends _$AppDatabase {
|
||||||
native: const DriftNativeOptions(
|
native: const DriftNativeOptions(
|
||||||
databaseDirectory: getApplicationSupportDirectory,
|
databaseDirectory: getApplicationSupportDirectory,
|
||||||
),
|
),
|
||||||
// If you need web support, see https://drift.simonbinder.eu/platforms/web/
|
web: DriftWebOptions(
|
||||||
|
sqlite3Wasm: Uri.parse('sqlite3.wasm'),
|
||||||
|
driftWorker: Uri.parse('drift_worker.dart.js'),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13329
web/drift_worker.dart.js
Normal file
13329
web/drift_worker.dart.js
Normal file
File diff suppressed because one or more lines are too long
BIN
web/sqlite3.wasm
Normal file
BIN
web/sqlite3.wasm
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue