From 46b9aa259ca6638eebd5bf9faa3babc9f61825fd Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 19 Jun 2024 12:28:47 +0530 Subject: [PATCH] [mob][photos] Keep select all feature behind feature flag --- .../actions/file_selection_overlay_bar.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart index 0cfb39c51f..735459bf82 100644 --- a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart +++ b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart @@ -3,6 +3,7 @@ import "package:photos/face/model/person.dart"; import 'package:photos/models/collection/collection.dart'; import 'package:photos/models/gallery_type.dart'; import 'package:photos/models/selected_files.dart'; +import "package:photos/service_locator.dart"; import "package:photos/theme/effects.dart"; import "package:photos/theme/ente_theme.dart"; import 'package:photos/ui/components/bottom_action_bar/bottom_action_bar_widget.dart'; @@ -68,11 +69,15 @@ class _FileSelectionOverlayBarState extends State { mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.end, children: [ - Padding( - padding: const EdgeInsets.only(right: 4), - child: SelectAllButton(backgroundColor: widget.backgroundColor), - ), - const SizedBox(height: 8), + flagService.internalUser + ? Padding( + padding: const EdgeInsets.only(right: 4), + child: SelectAllButton( + backgroundColor: widget.backgroundColor, + ), + ) + : const SizedBox.shrink(), + if (flagService.internalUser) const SizedBox(height: 8), Container( decoration: BoxDecoration( boxShadow: shadowFloatFaintLight,