π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add new localization strings and improve UI components for file actions
AmanRajSinghMourya60b4f1a6ec9b
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arbindex e3d219a0f8..dd96f61f0a 100644--- a/mobile/apps/locker/lib/l10n/app_en.arb+++ b/mobile/apps/locker/lib/l10n/app_en.arb@@ -610,5 +610,8 @@"exitApp": "Exit App","lockerLogs": "Locker logs","recents": "Recents",- "clear": "Clear"+ "clear": "Clear",+ "uploadAFile": "Upload a File",+ "clickHereToUpload": "Click here to upload",+ "saveDocument": "Save document"}diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dartindex 848f017c0e..ed042e2354 100644--- a/mobile/apps/locker/lib/l10n/app_localizations.dart+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart@@ -1989,6 +1989,24 @@ abstract class AppLocalizations {/// In en, this message translates to:/// **'Clear'**String get clear;++ /// No description provided for @uploadAFile.+ ///+ /// In en, this message translates to:+ /// **'Upload a File'**+ String get uploadAFile;++ /// No description provided for @clickHereToUpload.+ ///+ /// In en, this message translates to:+ /// **'Click here to upload'**+ String get clickHereToUpload;++ /// No description provided for @saveDocument.+ ///+ /// In en, this message translates to:+ /// **'Save document'**+ String get saveDocument;}class _AppLocalizationsDelegatediff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dartindex e10e2ca913..847b128061 100644--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart@@ -1122,4 +1122,13 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get clear => 'Clear';++ @override+ String get uploadAFile => 'Upload a File';++ @override+ String get clickHereToUpload => 'Click here to upload';++ @override+ String get saveDocument => 'Save document';}diff --git a/mobile/apps/locker/lib/ui/components/file_row_widget.dart b/mobile/apps/locker/lib/ui/components/file_row_widget.dartindex ade586a392..c837816eef 100644--- a/mobile/apps/locker/lib/ui/components/file_row_widget.dart+++ b/mobile/apps/locker/lib/ui/components/file_row_widget.dart@@ -108,8 +108,9 @@ class FileRowWidget extends StatelessWidget {decoration: BoxDecoration(border: Border.all(color: isSelected- ? colorScheme.strokeMuted+ ? colorScheme.primary700: colorScheme.backdropBase,+ width: 1.5,),color: colorScheme.backdropBase,borderRadius: const BorderRadius.all(Radius.circular(20)),@@ -129,14 +130,17 @@ class FileRowWidget extends StatelessWidget {key: const ValueKey("selected"),icon: Icons.check_circle_rounded,iconButtonType: IconButtonType.secondary,- iconColor: colorScheme.blurStrokeBase,+ iconColor: colorScheme.primary700,): PopupMenuButton<String>(onSelected: (value) =>_handleMenuAction(context, value),- icon: const HugeIcon(- icon: HugeIcons.strokeRoundedMoreVertical,- size: 20,+ child: Padding(+ padding: const EdgeInsets.all(12.0),+ child: HugeIcon(+ icon: HugeIcons.strokeRoundedMoreVertical,+ color: getEnteColorScheme(context).iconColor,+ ),),itemBuilder: (BuildContext context) {return _buildPopupMenuItems(context);@@ -422,7 +426,7 @@ class FileRowWidget extends StatelessWidget {try {final infoItem = InfoFileService.instance.extractInfoFromFile(file);if (infoItem != null) {- return InfoItemUtils.getInfoIcon(infoItem.type);+ return InfoItemUtils.getInfoIcon(infoItem.type);}} catch (e) {// Fallback to default icon if extraction failsdiff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dartindex 74a048d103..bc7f614488 100644--- a/mobile/apps/locker/lib/ui/pages/home_page.dart+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart@@ -9,6 +9,7 @@ import 'package:ente_ui/theme/ente_theme.dart';import 'package:ente_ui/utils/dialog_util.dart';import 'package:ente_utils/email_util.dart';import 'package:flutter/material.dart';+import "package:hugeicons/hugeicons.dart";import 'package:listen_sharing_intent/listen_sharing_intent.dart';import 'package:locker/events/collections_updated_event.dart';import 'package:locker/l10n/l10n.dart';@@ -614,6 +615,9 @@ class _HomePageState extends UploaderPageState<HomePage>return ValueListenableBuilder<bool>(valueListenable: _isFabOpen,builder: (context, isFabOpen, child) {+ final colorScheme = getEnteColorScheme(context);+ final textTheme = getEnteTextTheme(context);+return Stack(children: [if (isFabOpen)@@ -626,122 +630,151 @@ class _HomePageState extends UploaderPageState<HomePage>),),Positioned(- right: 0,- bottom: 0,+ right: 64,+ bottom: 64,child: Column(mainAxisSize: MainAxisSize.min,crossAxisAlignment: CrossAxisAlignment.end,children: [- if (isFabOpen) ...[- ScaleTransition(- scale: _animation,- child: Container(- margin: const EdgeInsets.only(bottom: 16),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- GestureDetector(- onTap: () {- _toggleFab();- _showInformationDialog();- },- child: Container(- padding: const EdgeInsets.symmetric(- horizontal: 12,- vertical: 6,- ),- decoration: BoxDecoration(- color: getEnteColorScheme(context).fillBase,- borderRadius: BorderRadius.circular(16),- ),- child: Text(- context.l10n.saveInformation,- style:- getEnteTextTheme(context).small.copyWith(- color: getEnteColorScheme(context)- .backgroundBase,- ),- ),- ),- ),- const SizedBox(width: 8),- FloatingActionButton(- heroTag: "information",- mini: true,- onPressed: () {- _toggleFab();- _showInformationDialog();- },- backgroundColor:- getEnteColorScheme(context).fillBase,- child: const Icon(Icons.edit_document),- ),- ],+ if (isFabOpen)+ SlideTransition(+ position: Tween<Offset>(+ begin: const Offset(0, 1),+ end: Offset.zero,+ ).animate(+ CurvedAnimation(+ parent: _animationController,+ curve: Curves.easeOutCubic,),),- ),- if (_collections.isNotEmpty)- ScaleTransition(- scale: _animation,+ child: FadeTransition(+ opacity: _animation,child: Container(- margin: const EdgeInsets.only(bottom: 8),- child: Row(+ width: 200,+ decoration: BoxDecoration(+ color: colorScheme.backgroundElevated,+ borderRadius: BorderRadius.circular(16),+ border: Border.all(color: colorScheme.strokeFaint),+ boxShadow: [+ BoxShadow(+ color: Colors.black.withValues(alpha: 0.08),+ blurRadius: 15,+ offset: const Offset(0, 4),+ ),+ ],+ ),+ child: Column(mainAxisSize: MainAxisSize.min,children: [- GestureDetector(- onTap: () {- _toggleFab();- addFile();- },- child: Container(- padding: const EdgeInsets.symmetric(- horizontal: 12,- vertical: 6,- ),- decoration: BoxDecoration(- color: getEnteColorScheme(context).fillBase,- borderRadius: BorderRadius.circular(16),+ Material(+ color: Colors.transparent,+ borderRadius: const BorderRadius.only(+ topLeft: Radius.circular(15),+ topRight: Radius.circular(15),+ ),+ child: InkWell(+ onTap: () {+ _toggleFab();+ _showInformationDialog();+ },+ borderRadius: const BorderRadius.only(+ topLeft: Radius.circular(15),+ topRight: Radius.circular(15),),- child: Text(- context.l10n.uploadDocumentTooltip,- style: getEnteTextTheme(context)- .small- .copyWith(- color: getEnteColorScheme(context)- .backgroundBase,+ child: Padding(+ padding: const EdgeInsets.symmetric(+ horizontal: 16,+ vertical: 16,+ ),+ child: Row(+ children: [+ HugeIcon(+ icon: HugeIcons.strokeRoundedFile01,+ color: colorScheme.primary700,+ size: 20,+ ),+ const SizedBox(width: 12),+ Expanded(+ child: Text(+ context.l10n.saveInformation,+ style: textTheme.body,+ ),),+ ],+ ),),),),- const SizedBox(width: 8),- FloatingActionButton(- heroTag: "addFile",- mini: true,- onPressed: () {- _toggleFab();- addFile();- },- backgroundColor:- getEnteColorScheme(context).fillBase,- child: const Icon(Icons.file_upload),+ Divider(+ height: 1,+ thickness: 1,+ color: colorScheme.strokeFaint,+ ),+ Material(+ color: Colors.transparent,+ borderRadius: const BorderRadius.only(+ bottomLeft: Radius.circular(15),+ bottomRight: Radius.circular(15),+ ),+ child: InkWell(+ onTap: () {+ _toggleFab();+ addFile();+ },+ borderRadius: const BorderRadius.only(+ bottomLeft: Radius.circular(15),+ bottomRight: Radius.circular(15),+ ),+ child: Padding(+ padding: const EdgeInsets.symmetric(+ horizontal: 16,+ vertical: 16,+ ),+ child: Row(+ children: [+ HugeIcon(+ icon:+ HugeIcons.strokeRoundedFileUpload,+ color: colorScheme.primary700,+ size: 20,+ ),+ const SizedBox(width: 12),+ Expanded(+ child: Text(+ context.l10n.saveDocument,+ style: textTheme.body,+ ),+ ),+ ],+ ),+ ),+ ),),],),),),- ],- FloatingActionButton(- onPressed: _toggleFab,- backgroundColor: getEnteColorScheme(context).primary700,- child: AnimatedRotation(- turns: isFabOpen ? 0.125 : 0.0, // 45 degrees when open- duration: const Duration(milliseconds: 300),- child: const Icon(Icons.add),),- ),],),),+ Positioned(+ right: 16,+ bottom: 16,+ child: FloatingActionButton(+ onPressed: _toggleFab,+ shape: const CircleBorder(),+ backgroundColor: colorScheme.primary700,+ child: AnimatedRotation(+ turns: isFabOpen ? 0.125 : 0.0, // 45 degrees when open+ duration: const Duration(milliseconds: 300),+ child: const HugeIcon(+ icon: HugeIcons.strokeRoundedPlusSign,+ color: Colors.white,+ ),+ ),+ ),+ ),],);},diff --git a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dartindex dfe0cee3d7..7f2cb5e9b4 100644--- a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart+++ b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart@@ -28,7 +28,6 @@ class _CollectionSelectionOverlayBarStateWidget build(BuildContext context) {final bottomPadding = MediaQuery.of(context).padding.bottom;final colorScheme = getEnteColorScheme(context);- final isDarkMode = Theme.of(context).brightness == Brightness.dark;return ConstrainedBox(constraints: BoxConstraints(@@ -38,115 +37,6 @@ class _CollectionSelectionOverlayBarStatemainAxisSize: MainAxisSize.min,mainAxisAlignment: MainAxisAlignment.end,children: [- Padding(- padding: const EdgeInsets.symmetric(horizontal: 12.0),- child: Row(- children: [- ListenableBuilder(- listenable: widget.selectedCollections,- builder: (context, child) {- final isAllSelected = widget.selectedCollections.count ==- widget.collection.length;- final buttonText = isAllSelected- ? context.l10n.deselectAll- : context.l10n.selectAll;- final iconData = isAllSelected- ? Icons.remove_circle_outline- : Icons.check_circle_outline_outlined;-- return InkWell(- onTap: () {- if (isAllSelected) {- widget.selectedCollections.clearAll();- } else {- widget.selectedCollections- .select(widget.collection.toSet());- }- },- child: Container(- decoration: BoxDecoration(- border: Border.all(- color: colorScheme.strokeMuted,- width: 0.5,- ),- borderRadius: BorderRadius.circular(50),- color: isDarkMode- ? const Color.fromRGBO(27, 27, 27, 1)- : colorScheme.backgroundElevated2,- ),- padding: const EdgeInsets.symmetric(- horizontal: 12.0,- vertical: 8.0,- ),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- Text(- buttonText,- style: getEnteTextTheme(context).smallBold,- ),- const SizedBox(width: 6),- Icon(- iconData,- color: colorScheme.textBase,- size: 16,- ),- ],- ),- ),- );- },- ),- const Spacer(),- ListenableBuilder(- listenable: widget.selectedCollections,- builder: (context, child) {- final count = widget.selectedCollections.count;- final countText =- count == 1 ? '1 selected' : '$count selected';-- return InkWell(- onTap: () {- widget.selectedCollections.clearAll();- },- child: Container(- decoration: BoxDecoration(- border: Border.all(- color: colorScheme.strokeMuted,- width: 0.5,- ),- borderRadius: BorderRadius.circular(50),- color: isDarkMode- ? const Color.fromRGBO(27, 27, 27, 1)- : colorScheme.backgroundElevated2,- ),- padding: const EdgeInsets.symmetric(- horizontal: 12.0,- vertical: 8.0,- ),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- Text(- countText,- style: getEnteTextTheme(context).smallBold,- ),- const SizedBox(width: 6),- Icon(- Icons.close,- size: 16,- color: colorScheme.textBase,- ),- ],- ),- ),- );- },- ),- ],- ),- ),- const SizedBox(height: 12),Card(margin: EdgeInsets.zero,shape: const RoundedRectangleBorder(@@ -156,14 +46,109 @@ class _CollectionSelectionOverlayBarState),),elevation: 4,- color: isDarkMode- ? const Color.fromRGBO(18, 18, 18, 1)- : colorScheme.backgroundElevated,+ surfaceTintColor: getEnteColorScheme(context).backdropBase,child: Padding(padding: EdgeInsets.fromLTRB(16, 16, 16, 28 + bottomPadding),child: Column(mainAxisSize: MainAxisSize.min,children: [+ Row(+ children: [+ ListenableBuilder(+ listenable: widget.selectedCollections,+ builder: (context, child) {+ final isAllSelected =+ widget.selectedCollections.count ==+ widget.collection.length;+ final buttonText = isAllSelected+ ? context.l10n.deselectAll+ : context.l10n.selectAll;+ final iconData = isAllSelected+ ? Icons.remove_circle_outline+ : Icons.check_circle_outline_outlined;++ return InkWell(+ onTap: () {+ if (isAllSelected) {+ widget.selectedCollections.clearAll();+ } else {+ widget.selectedCollections+ .select(widget.collection.toSet());+ }+ },+ child: Container(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(50),+ color:+ getEnteColorScheme(context).backgroundBase,+ ),+ padding: const EdgeInsets.symmetric(+ horizontal: 12.0,+ vertical: 8.0,+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ Text(+ buttonText,+ style: getEnteTextTheme(context).small,+ ),+ const SizedBox(width: 6),+ Icon(+ iconData,+ color: colorScheme.textBase,+ size: 16,+ ),+ ],+ ),+ ),+ );+ },+ ),+ const Spacer(),+ ListenableBuilder(+ listenable: widget.selectedCollections,+ builder: (context, child) {+ final count = widget.selectedCollections.count;+ final countText =+ count == 1 ? '1 selected' : '$count selected';++ return InkWell(+ onTap: () {+ widget.selectedCollections.clearAll();+ },+ child: Container(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(50),+ color:+ getEnteColorScheme(context).backgroundBase,+ ),+ padding: const EdgeInsets.symmetric(+ horizontal: 12.0,+ vertical: 8.0,+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ Text(+ countText,+ style: getEnteTextTheme(context).small,+ ),+ const SizedBox(width: 6),+ Icon(+ Icons.close,+ size: 16,+ color: colorScheme.textBase,+ ),+ ],+ ),+ ),+ );+ },+ ),+ ],+ ),+ const SizedBox(height: 24),_buildActionButtons(),],),@@ -175,8 +160,6 @@ class _CollectionSelectionOverlayBarState}Widget _buildActionButtons() {- final isDarkMode = Theme.of(context).brightness == Brightness.dark;-return ListenableBuilder(listenable: widget.selectedCollections,builder: (context, child) {@@ -191,17 +174,12 @@ class _CollectionSelectionOverlayBarStateduration: const Duration(milliseconds: 200),curve: Curves.easeInOut,decoration: BoxDecoration(- color: isDarkMode- ? const Color.fromRGBO(255, 255, 255, 0.04)- : const Color.fromRGBO(0, 0, 0, 0.02),+ color: getEnteColorScheme(context).backgroundBase,borderRadius: BorderRadius.circular(12),),- child: Padding(- padding: const EdgeInsets.symmetric(vertical: 4.0),- child: Row(- mainAxisAlignment: MainAxisAlignment.spaceEvenly,- children: actions,- ),+ child: Row(+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,+ children: actions,),);},diff --git a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dartindex bdc03c5a9f..1d574afb07 100644--- a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart+++ b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart@@ -32,7 +32,6 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {Widget build(BuildContext context) {final bottomPadding = MediaQuery.of(context).padding.bottom;final colorScheme = getEnteColorScheme(context);- final isDarkMode = Theme.of(context).brightness == Brightness.dark;return ConstrainedBox(constraints: BoxConstraints(@@ -42,115 +41,8 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {mainAxisSize: MainAxisSize.min,mainAxisAlignment: MainAxisAlignment.end,children: [- Padding(- padding: const EdgeInsets.symmetric(horizontal: 12.0),- child: Row(- children: [- ListenableBuilder(- listenable: widget.selectedFiles,- builder: (context, child) {- final isAllSelected =- widget.selectedFiles.count == widget.files.length;- final buttonText = isAllSelected- ? context.l10n.deselectAll- : context.l10n.selectAll;- final iconData = isAllSelected- ? Icons.remove_circle_outline- : Icons.check_circle_outline_outlined;-- return InkWell(- onTap: () {- if (isAllSelected) {- widget.selectedFiles.clearAll();- } else {- widget.selectedFiles.selectAll(widget.files.toSet());- }- },- child: Container(- decoration: BoxDecoration(- border: Border.all(- color: colorScheme.strokeMuted,- width: 0.5,- ),- borderRadius: BorderRadius.circular(50),- color: isDarkMode- ? const Color.fromRGBO(27, 27, 27, 1)- : colorScheme.backgroundElevated2,- ),- padding: const EdgeInsets.symmetric(- horizontal: 12.0,- vertical: 8.0,- ),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- Text(- buttonText,- style: getEnteTextTheme(context).bodyBold,- ),- const SizedBox(width: 6),- Icon(- iconData,- color: Colors.grey,- size: 16,- ),- ],- ),- ),- );- },- ),- const Spacer(),- ListenableBuilder(- listenable: widget.selectedFiles,- builder: (context, child) {- final count = widget.selectedFiles.count;- final countText =- count == 1 ? '1 selected' : '$count selected';-- return InkWell(- onTap: () {- widget.selectedFiles.clearAll();- },- child: Container(- decoration: BoxDecoration(- border: Border.all(- color: colorScheme.strokeMuted,- width: 0.5,- ),- borderRadius: BorderRadius.circular(50),- color: isDarkMode- ? const Color.fromRGBO(27, 27, 27, 1)- : colorScheme.backgroundElevated2,- ),- padding: const EdgeInsets.symmetric(- horizontal: 12.0,- vertical: 8.0,- ),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- Text(- countText,- style: getEnteTextTheme(context).bodyBold,- ),- const SizedBox(width: 6),- const Icon(- Icons.close,- color: Colors.grey,- size: 16,- ),- ],- ),- ),- );- },- ),- ],- ),- ),- const SizedBox(height: 12),Card(+ borderOnForeground: true,margin: EdgeInsets.zero,shape: const RoundedRectangleBorder(borderRadius: BorderRadius.only(@@ -159,14 +51,106 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {),),elevation: 4,- surfaceTintColor: isDarkMode- ? const Color.fromRGBO(18, 18, 18, 1)- : colorScheme.backgroundBase,+ surfaceTintColor: colorScheme.backdropBase,child: Padding(padding: EdgeInsets.fromLTRB(16, 16, 16, 28 + bottomPadding),child: Column(mainAxisSize: MainAxisSize.min,children: [+ Row(+ children: [+ ListenableBuilder(+ listenable: widget.selectedFiles,+ builder: (context, child) {+ final isAllSelected =+ widget.selectedFiles.count == widget.files.length;+ final buttonText = isAllSelected+ ? context.l10n.deselectAll+ : context.l10n.selectAll;+ final iconData = isAllSelected+ ? Icons.remove_circle_outline+ : Icons.check_circle_outline_outlined;++ return InkWell(+ onTap: () {+ if (isAllSelected) {+ widget.selectedFiles.clearAll();+ } else {+ widget.selectedFiles+ .selectAll(widget.files.toSet());+ }+ },+ child: Container(+ decoration: BoxDecoration(+ color: colorScheme.backgroundBase,+ borderRadius: BorderRadius.circular(50),+ ),+ padding: const EdgeInsets.symmetric(+ horizontal: 12.0,+ vertical: 8.0,+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ Text(+ buttonText,+ style: getEnteTextTheme(context).small,+ ),+ const SizedBox(width: 6),+ Icon(+ iconData,+ color: Colors.grey,+ size: 16,+ ),+ ],+ ),+ ),+ );+ },+ ),+ const Spacer(),+ ListenableBuilder(+ listenable: widget.selectedFiles,+ builder: (context, child) {+ final count = widget.selectedFiles.count;+ final countText =+ count == 1 ? '1 selected' : '$count selected';++ return InkWell(+ onTap: () {+ widget.selectedFiles.clearAll();+ },+ child: Container(+ decoration: BoxDecoration(+ color: colorScheme.backgroundBase,+ borderRadius: BorderRadius.circular(50),+ ),+ padding: const EdgeInsets.symmetric(+ horizontal: 12.0,+ vertical: 8.0,+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ Text(+ countText,+ style: getEnteTextTheme(context).small,+ ),+ const SizedBox(width: 6),+ const Icon(+ Icons.close,+ color: Colors.grey,+ size: 16,+ ),+ ],+ ),+ ),+ );+ },+ ),+ ],+ ),+ const SizedBox(height: 24),_buildActionButtons(),],),@@ -178,8 +162,6 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {}Widget _buildActionButtons() {- final isDarkMode = Theme.of(context).brightness == Brightness.dark;-return ListenableBuilder(listenable: widget.selectedFiles,builder: (context, child) {@@ -194,17 +176,12 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {duration: const Duration(milliseconds: 200),curve: Curves.easeInOut,decoration: BoxDecoration(- color: isDarkMode- ? const Color.fromRGBO(255, 255, 255, 0.04)- : getEnteColorScheme(context).backgroundElevated2,+ color: getEnteColorScheme(context).backgroundBase,borderRadius: BorderRadius.circular(12),),- child: Padding(- padding: const EdgeInsets.symmetric(vertical: 4.0),- child: Row(- mainAxisAlignment: MainAxisAlignment.spaceEvenly,- children: actions,- ),+ child: Row(+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,+ children: actions,),);},