Prechádzať zdrojové kódy

used widget that restricts the height of bottom sheet

ashilkn 2 rokov pred
rodič
commit
6e16a7c0a9

+ 7 - 2
lib/ui/viewer/file/fading_bottom_bar.dart

@@ -12,6 +12,7 @@ import 'package:photos/models/file_type.dart';
 import 'package:photos/models/magic_metadata.dart';
 import 'package:photos/models/selected_files.dart';
 import 'package:photos/models/trash_file.dart';
+import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/ui/create_collection_page.dart';
 import 'package:photos/ui/viewer/file/file_info_widget.dart';
@@ -244,8 +245,12 @@ class FadingBottomBarState extends State<FadingBottomBar> {
   }
 
   Future<void> _displayInfo(File file) async {
-    return showMaterialModalBottomSheet(
-      backgroundColor: getEnteColorScheme(context).backgroundBase,
+    final colorScheme = getEnteColorScheme(context);
+    return showBarModalBottomSheet(
+      topControl: const SizedBox.shrink(),
+      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(0)),
+      backgroundColor: colorScheme.backgroundBase,
+      barrierColor: backdropMutedDark,
       context: context,
       builder: (BuildContext context) {
         return FileInfoWidget(file);

+ 0 - 50
lib/ui/viewer/file/raw_exif_list_tile_widget.dart

@@ -45,7 +45,6 @@ class RawExifListTileWidget extends StatelessWidget {
                   showShortToast(context, "This image has no exif data");
                 }
               : null,
-
       child: ListTile(
         leading: const Padding(
           padding: EdgeInsets.only(top: 8, left: 6),
@@ -66,55 +65,6 @@ class RawExifListTileWidget extends StatelessWidget {
               ),
         ),
       ),
-      //  Container(
-      //   height: 40,
-      //   width: 140,
-      //   decoration: BoxDecoration(
-      //     color: Theme.of(context)
-      //         .colorScheme
-      //         .inverseBackgroundColor
-      //         .withOpacity(0.12),
-      //     borderRadius: const BorderRadius.all(
-      //       Radius.circular(20),
-      //     ),
-      //   ),
-      //   child: Center(
-      //     child: exifStatus == Status.loading
-      //         ? Row(
-      //             mainAxisAlignment: MainAxisAlignment.center,
-      //             children: const [
-      //               CupertinoActivityIndicator(
-      //                 radius: 8,
-      //               ),
-      //               SizedBox(
-      //                 width: 8,
-      //               ),
-      //               Text('EXIF')
-      //             ],
-      //           )
-      //         : exifStatus == Status.exifIsAvailable
-      //             ? Row(
-      //                 mainAxisAlignment: MainAxisAlignment.center,
-      //                 children: const [
-      //                   Icon(Icons.feed_outlined),
-      //                   SizedBox(
-      //                     width: 8,
-      //                   ),
-      //                   Text('Raw EXIF'),
-      //                 ],
-      //               )
-      //             : Row(
-      //                 mainAxisAlignment: MainAxisAlignment.center,
-      //                 children: const [
-      //                   Icon(Icons.feed_outlined),
-      //                   SizedBox(
-      //                     width: 8,
-      //                   ),
-      //                   Text('No EXIF'),
-      //                 ],
-      //               ),
-      //   ),
-      // ),
     );
   }
 }