Explorar el Código

[fit]修复桌面包名,修改加载动画

云天逵 hace 9 meses
padre
commit
58c8251d0e

+ 2 - 2
ios/Runner/Info.plist

@@ -9,7 +9,7 @@
 	<key>CFBundleDevelopmentRegion</key>
 	<string>$(DEVELOPMENT_LANGUAGE)</string>
 	<key>CFBundleDisplayName</key>
-	<string>Clean</string>
+	<string>CleanPro</string>
 	<key>CFBundleExecutable</key>
 	<string>$(EXECUTABLE_NAME)</string>
 	<key>CFBundleIdentifier</key>
@@ -17,7 +17,7 @@
 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<key>CFBundleName</key>
-	<string>CleanPro</string>
+	<string>clean</string>
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>

+ 1 - 1
lib/module/analysis/analysis_controller.dart

@@ -255,7 +255,7 @@ class AnalysisController extends BaseController {
 // 开启图库
   Future<void> openGallery() async {
     var status = await Permission.photos.status;
-    if (status == PermissionStatus.denied) {
+    if (status == PermissionStatus.granted) {
       List<AssetEntity> assets = <AssetEntity>[];
       for (var asset in imageList) {
         var newAsset = await asset.toAssetEntity();

+ 5 - 10
lib/module/home/home_view.dart

@@ -473,8 +473,7 @@ class HomePage extends BaseView<HomeController> {
                   size: 70.w,
                   image: Opacity(
                     opacity: 0.22,
-                    child: Lottie.asset(Assets.anim.animNoPhoto,
-                        repeat: true, width: 100.w, height: 100.w),
+                    child: const CircularProgressIndicator(color: Colors.white38,)
                   ),
                   // AssetEntityImage(
                   //         width: 70.w,
@@ -574,8 +573,7 @@ class HomePage extends BaseView<HomeController> {
                         return ImageContainer(
                           image: Opacity(
                             opacity: 0.22,
-                            child: Lottie.asset(Assets.anim.animNoPhoto,
-                                repeat: true, width: 140.w, height: 140.w),
+                            child: const CircularProgressIndicator(color: Colors.white38,),
                           ),
                           size: 146.w,
                           // Image.file(
@@ -659,8 +657,7 @@ class HomePage extends BaseView<HomeController> {
                         child: controller.locationPhoto.value == null
                             ? Opacity(
                                 opacity: 0.22,
-                                child: Lottie.asset(Assets.anim.animNoPhoto,
-                                    repeat: true, width: 160.w, height: 160.w),
+                                child: const CircularProgressIndicator(color: Colors.white38,),
                               )
                             : AssetEntityImage(
                                 width: 304.w,
@@ -725,8 +722,7 @@ class HomePage extends BaseView<HomeController> {
               controller.screenshotPhoto.value == null
                   ? Opacity(
                       opacity: 0.22,
-                      child: Lottie.asset(Assets.anim.animNoPhoto,
-                          repeat: true, width: 100.w, height: 100.w),
+                      child: const CircularProgressIndicator(color: Colors.white38,),
                     )
                   : AssetEntityImage(
                       width: 144.w,
@@ -754,8 +750,7 @@ class HomePage extends BaseView<HomeController> {
                 controller.blurryPhoto.value == null
                     ? Opacity(
                         opacity: 0.22,
-                        child: Lottie.asset(Assets.anim.animNoPhoto,
-                            repeat: true, width: 100.w, height: 100.w),
+                        child: const CircularProgressIndicator(color: Colors.white38,),
                       )
                     : AssetEntityImage(
                         width: 144.w,