File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class ExerciseDatabase extends _$ExerciseDatabase {
78
78
79
79
LazyDatabase _openConnection () {
80
80
return LazyDatabase (() async {
81
- final dbFolder = await getApplicationDocumentsDirectory ();
81
+ final dbFolder = await getApplicationCacheDirectory ();
82
82
final file = File (p.join (dbFolder.path, 'exercises.sqlite' ));
83
83
return NativeDatabase .createInBackground (file);
84
84
});
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class IngredientDatabase extends _$IngredientDatabase {
30
30
31
31
LazyDatabase _openConnection () {
32
32
return LazyDatabase (() async {
33
- final dbFolder = await getApplicationDocumentsDirectory ();
33
+ final dbFolder = await getApplicationCacheDirectory ();
34
34
final file = File (p.join (dbFolder.path, 'ingredients.sqlite' ));
35
35
return NativeDatabase .createInBackground (file);
36
36
});
You can’t perform that action at this time.
0 commit comments