Browse Source

[fix]修复报错

Destiny 1 year ago
parent
commit
b449c9ffbe
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/data/consts/constants.dart

+ 3 - 0
lib/data/consts/constants.dart

@@ -1,3 +1,5 @@
+import 'package:clean/utils/mmkv_util.dart';
+
 class Constants {
   Constants._();
 
@@ -65,6 +67,7 @@ class PayMethod {
 bool isFirstOpenPhotoPreview() {
   return KVUtil.getBool(Constants.firstOpenPhotoPreview, true);
 }
+
 void setFirstOpenPhotoPreview(bool firstTime) {
   KVUtil.putBool(Constants.firstOpenPhotoPreview, firstTime);
 }