Sfoglia il codice sorgente

Give top border radius for file details sheet

ashilkn 2 anni fa
parent
commit
7fa25e75e3
2 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 3 1
      lib/db/files_db.dart
  2. 5 1
      lib/ui/actions/file/file_actions.dart

+ 3 - 1
lib/db/files_db.dart

@@ -1398,7 +1398,9 @@ class FilesDB {
   // For given list of localIDs and ownerID, get a list of uploaded files
   // owned by given user
   Future<List<File>> getFilesForLocalIDs(
-      List<String> localIDs, int ownerID) async {
+    List<String> localIDs,
+    int ownerID,
+  ) async {
     final db = await instance.database;
     final rows = await db.query(
       filesTable,

+ 5 - 1
lib/ui/actions/file/file_actions.dart

@@ -135,7 +135,11 @@ Future<void> showDetailsSheet(BuildContext context, File file) async {
   final colorScheme = getEnteColorScheme(context);
   return showBarModalBottomSheet(
     topControl: const SizedBox.shrink(),
-    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(0)),
+    shape: const RoundedRectangleBorder(
+      borderRadius: BorderRadius.vertical(
+        top: Radius.circular(5),
+      ),
+    ),
     backgroundColor: colorScheme.backgroundElevated,
     barrierColor: backdropFaintDark,
     context: context,