Просмотр исходного кода

Removed Expanded widget which was throwing an exception

ashilkn 2 лет назад
Родитель
Сommit
376549173b
1 измененных файлов с 15 добавлено и 18 удалено
  1. 15 18
      lib/ui/map/map_pull_up_gallery.dart

+ 15 - 18
lib/ui/map/map_pull_up_gallery.dart

@@ -91,24 +91,21 @@ class MapPullUpGallery extends StatelessWidget {
                         );
                       }
 
-                      return Expanded(
-                        child: Gallery(
-                          asyncLoader: (
-                            creationStartTime,
-                            creationEndTime, {
-                            limit,
-                            asc,
-                          }) async {
-                            FileLoadResult result;
-                            result = FileLoadResult(images, false);
-                            return result;
-                          },
-                          reloadEvent:
-                              Bus.instance.on<LocalPhotosUpdatedEvent>(),
-                          tagPrefix: "map_gallery",
-                          showSelectAllByDefault: true,
-                          selectedFiles: SelectedFiles(),
-                        ),
+                      return Gallery(
+                        asyncLoader: (
+                          creationStartTime,
+                          creationEndTime, {
+                          limit,
+                          asc,
+                        }) async {
+                          FileLoadResult result;
+                          result = FileLoadResult(images, false);
+                          return result;
+                        },
+                        reloadEvent: Bus.instance.on<LocalPhotosUpdatedEvent>(),
+                        tagPrefix: "map_gallery",
+                        showSelectAllByDefault: true,
+                        selectedFiles: SelectedFiles(),
                       );
                     },
                   ),