π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add a scrollbar for bottom action bar (#1561)
Vishnu Mohandas3441c950d83f
diff --git a/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart b/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dartindex b562ada817..b896e0f1f9 100644--- a/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart+++ b/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart@@ -49,13 +49,12 @@ class BottomActionBarWidget extends StatelessWidget {child: Column(mainAxisSize: MainAxisSize.min,children: [- const SizedBox(height: 12),+ const SizedBox(height: 8),FileSelectionActionsWidget(galleryType,selectedFiles,collection: collection,),- const SizedBox(height: 20),const DividerWidget(dividerType: DividerType.bottomBar),ActionBarWidget(selectedFiles: selectedFiles,diff --git a/lib/ui/viewer/actions/file_selection_actions_widget.dart b/lib/ui/viewer/actions/file_selection_actions_widget.dartindex 6f26d8e7d3..0baccceaf3 100644--- a/lib/ui/viewer/actions/file_selection_actions_widget.dart+++ b/lib/ui/viewer/actions/file_selection_actions_widget.dart@@ -319,21 +319,30 @@ class _FileSelectionActionsWidgetState);if (items.isNotEmpty) {- return SizedBox(- width: double.infinity,- child: Center(- child: SingleChildScrollView(- physics: const BouncingScrollPhysics(- decelerationRate: ScrollDecelerationRate.fast,- ),- scrollDirection: Axis.horizontal,- child: Row(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- const SizedBox(width: 4),- ...items,- const SizedBox(width: 4),- ],+ final scrollController = ScrollController();+ // h4ck: https://github.com/flutter/flutter/issues/57920#issuecomment-893970066+ return MediaQuery(+ data: MediaQuery.of(context).removePadding(removeBottom: true),+ child: SafeArea(+ child: Scrollbar(+ controller: scrollController,+ thumbVisibility: true,+ child: SingleChildScrollView(+ physics: const BouncingScrollPhysics(+ decelerationRate: ScrollDecelerationRate.fast,+ ),+ scrollDirection: Axis.horizontal,+ child: Container(+ padding: const EdgeInsets.only(bottom: 24),+ child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ const SizedBox(width: 4),+ ...items,+ const SizedBox(width: 4),+ ],+ ),+ ),),),),