From 4f97170252ac5f005ab91920f28176b2c7aab1cd Mon Sep 17 00:00:00 2001 From: ashilkn Date: Tue, 7 Jun 2022 20:13:14 +0530 Subject: [PATCH] removed gradient on collection screen and made it only visible on when the selection overlay comes up --- lib/ui/collection_page.dart | 2 -- lib/ui/gallery_overlay_widget.dart | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ui/collection_page.dart b/lib/ui/collection_page.dart index 999adfd75..ad932746f 100644 --- a/lib/ui/collection_page.dart +++ b/lib/ui/collection_page.dart @@ -6,7 +6,6 @@ import 'package:photos/events/files_updated_event.dart'; import 'package:photos/models/collection_items.dart'; import 'package:photos/models/galleryType.dart'; import 'package:photos/models/selected_files.dart'; -import 'package:photos/ui/common/bottomShadow.dart'; import 'package:photos/ui/gallery.dart'; import 'package:photos/ui/gallery_app_bar_widget.dart'; import 'package:photos/ui/gallery_overlay_widget.dart'; @@ -62,7 +61,6 @@ class CollectionPage extends StatelessWidget { alignment: Alignment.bottomCenter, children: [ gallery, - BottomShadowWidget(), GalleryOverlayWidget( overlayType, _selectedFiles, diff --git a/lib/ui/gallery_overlay_widget.dart b/lib/ui/gallery_overlay_widget.dart index 98009103d..fb1eff8d1 100644 --- a/lib/ui/gallery_overlay_widget.dart +++ b/lib/ui/gallery_overlay_widget.dart @@ -15,6 +15,7 @@ import 'package:photos/models/galleryType.dart'; import 'package:photos/models/magic_metadata.dart'; import 'package:photos/models/selected_files.dart'; import 'package:photos/services/collections_service.dart'; +import 'package:photos/ui/common/bottomShadow.dart'; import 'package:photos/ui/common/onlyOuterShadow.dart'; import 'package:photos/ui/create_collection_page.dart'; import 'package:photos/utils/delete_file_util.dart'; @@ -219,6 +220,9 @@ class _OverlayWidgetState extends State { ), ], ), + BottomShadowWidget( + offsetDy: 40, + ), ], ), );