support show the image when back

This commit is contained in:
Siyi Guo committed 2023-04-13 17:08:48 +08:00
1 parent b430697b5c
commit c95c0e192e
2 files changed
+12 -2

No files matched your search

+2 -2
View File
@@ -17,8 +17,8 @@ class ImagePage extends StatefulWidget {
}
class _ImagePageState extends State<ImagePage> with WindowListener {
File? image;
File? image2;
static File? image;
static File? image2;
bool isImageSelected1 = true;
bool isImageSelected2 = true;
double opacity1 = 1;
+10
View File
@@ -14,4 +14,14 @@ class SP {
static Future<bool> setDouble(String key, double value) {
return prefs.setDouble(key, value);
}
static String? getString(String key) {
return prefs.getString(key);
}
static Future<bool> setString(String key, String value) {
return prefs.setString(key, value);
}
}