Procházet zdrojové kódy

Fix bg color for live photo video preview in lightTheme

Neeraj Gupta před 3 roky
rodič
revize
a662ce583e

+ 23 - 21
lib/ui/settings/social_section_widget.dart

@@ -48,27 +48,29 @@ class SocialSectionWidget extends StatelessWidget {
       ),
     ];
     if (!UpdateService.instance.isIndependent()) {
-      options.addAll([
-        SectionOptionDivider,
-        GestureDetector(
-          behavior: HitTestBehavior.translucent,
-          onTap: () {
-            if (Platform.isAndroid) {
-              launch(
-                "https://play.google.com/store/apps/details?id=io.ente.photos",
-              );
-            } else {
-              launch(
-                "https://apps.apple.com/in/app/ente-photos/id1542026904",
-              );
-            }
-          },
-          child: SettingsTextItem(
-            text: "Rate us! ✨",
-            icon: Icons.navigate_next,
-          ),
-        )
-      ]);
+      options.addAll(
+        [
+          SectionOptionDivider,
+          GestureDetector(
+            behavior: HitTestBehavior.translucent,
+            onTap: () {
+              if (Platform.isAndroid) {
+                launch(
+                  "https://play.google.com/store/apps/details?id=io.ente.photos",
+                );
+              } else {
+                launch(
+                  "https://apps.apple.com/in/app/ente-photos/id1542026904",
+                );
+              }
+            },
+            child: SettingsTextItem(
+              text: "Rate us! ✨",
+              icon: Icons.navigate_next,
+            ),
+          )
+        ],
+      );
     }
     return Column(children: options);
   }

+ 5 - 2
lib/ui/zoomable_live_image.dart

@@ -109,7 +109,10 @@ class _ZoomableLiveImageState extends State<ZoomableLiveImage>
       allowFullScreen: false,
       showControls: false,
     );
-    return Chewie(controller: _chewieController);
+    return Container(
+      child: Chewie(controller: _chewieController),
+      color: Colors.black, // same for both theme
+    );
   }
 
   Future<void> _loadLiveVideo() async {
@@ -142,7 +145,7 @@ class _ZoomableLiveImageState extends State<ZoomableLiveImage>
     if (videoFile != null && videoFile.existsSync()) {
       _setVideoPlayerController(file: videoFile);
     } else {
-      showShortToast(context, "download failed");
+      showShortToast(context, "Download failed");
     }
     _isLoadingVideoPlayer = false;
   }