support show the image when back
This commit is contained in:
1 parent
b430697b5c
commit
c95c0e192e
2 files changed
+12
-2
No files matched your search
@@ -17,8 +17,8 @@ class ImagePage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _ImagePageState extends State<ImagePage> with WindowListener {
|
class _ImagePageState extends State<ImagePage> with WindowListener {
|
||||||
File? image;
|
static File? image;
|
||||||
File? image2;
|
static File? image2;
|
||||||
bool isImageSelected1 = true;
|
bool isImageSelected1 = true;
|
||||||
bool isImageSelected2 = true;
|
bool isImageSelected2 = true;
|
||||||
double opacity1 = 1;
|
double opacity1 = 1;
|
||||||
|
|||||||
@@ -14,4 +14,14 @@ class SP {
|
|||||||
static Future<bool> setDouble(String key, double value) {
|
static Future<bool> setDouble(String key, double value) {
|
||||||
return prefs.setDouble(key, 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user