File tree Expand file tree Collapse file tree 3 files changed +0
-16
lines changed
Expand file tree Collapse file tree 3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 1313 matrix :
1414 platform :
1515 - linux
16- - windows
1716 - macos
1817 - web
1918 include :
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ library flutter_data;
33// import external packages
44import 'dart:async' ;
55import 'dart:convert' ;
6- import 'dart:ffi' ;
76import 'dart:io' ;
87import 'dart:isolate' ;
98import 'dart:math' show Random;
@@ -16,7 +15,6 @@ import 'package:inflection3/inflection3.dart' as inflection;
1615import 'package:meta/meta.dart' ;
1716import 'package:path/path.dart' as path_helper;
1817import 'package:riverpod/riverpod.dart' ;
19- import 'package:sqlite3/open.dart' ;
2018import 'package:sqlite3/sqlite3.dart' ;
2119import 'package:state_notifier/state_notifier.dart' ;
2220
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ class LocalStorage {
2929 await destroy ();
3030 }
3131
32- if (Platform .isWindows) {
33- open.overrideFor (OperatingSystem .windows, _openOnWindows);
34- }
35-
3632 db = sqlite3.open (path, mutex: false );
3733
3834 if (inIsolate) {
@@ -113,12 +109,3 @@ enum LocalStorageClearStrategy {
113109final localStorageProvider = Provider <LocalStorage >(
114110 (ref) => LocalStorage (baseDirFn: () => '' ),
115111);
116-
117- // platforms
118-
119- DynamicLibrary _openOnWindows () {
120- final scriptDir = File (Platform .script.toFilePath ()).parent;
121- final libraryNextToScript =
122- File (path_helper.join (scriptDir.path, 'sqlite3.dll' ));
123- return DynamicLibrary .open (libraryNextToScript.path);
124- }
You can’t perform that action at this time.
0 commit comments