π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refine bottom sheet illustration spacing
ashilkn7265a15fa9d2
diff --git a/mobile/apps/photos/lib/ui/components/alert_bottom_sheet.dart b/mobile/apps/photos/lib/ui/components/alert_bottom_sheet.dartindex ed438a3f6f..ffb1d8b504 100644--- a/mobile/apps/photos/lib/ui/components/alert_bottom_sheet.dart+++ b/mobile/apps/photos/lib/ui/components/alert_bottom_sheet.dart@@ -78,9 +78,13 @@ class AlertBottomSheet<T> extends StatelessWidget {child: SizedBox(width: 180,height: 120,- child: FittedBox(- fit: BoxFit.scaleDown,- child: Image.asset(assetPath!),+ child: Padding(+ padding: const EdgeInsets.only(bottom: 11),+ child: FittedBox(+ alignment: Alignment.bottomCenter,+ fit: BoxFit.scaleDown,+ child: Image.asset(assetPath!),+ ),),),),@@ -111,7 +115,7 @@ class AlertBottomSheet<T> extends StatelessWidget {if (buttons == null || buttons!.isEmpty) return [];return [- const SizedBox(height: 16),+ const SizedBox(height: 24),ListView.separated(shrinkWrap: true,physics: const NeverScrollableScrollPhysics(),diff --git a/mobile/packages/ente_components/lib/components/bottom_sheet/bottom_sheet_component.dart b/mobile/packages/ente_components/lib/components/bottom_sheet/bottom_sheet_component.dartindex 1c5aa22101..2011583989 100644--- a/mobile/packages/ente_components/lib/components/bottom_sheet/bottom_sheet_component.dart+++ b/mobile/packages/ente_components/lib/components/bottom_sheet/bottom_sheet_component.dart@@ -178,6 +178,9 @@ class BottomSheetComponent extends StatelessWidget {final effectiveContentSpacing = usesCenteredLayout? Spacing.lg: contentSpacing;+ final effectiveActionsTopSpacing = usesCenteredLayout+ ? Spacing.xxl+ : actionsTopSpacing;return AnimatedPadding(duration: const Duration(milliseconds: 200),@@ -207,7 +210,7 @@ class BottomSheetComponent extends StatelessWidget {effectiveContent,],if (actions.isNotEmpty) ...[- SizedBox(height: actionsTopSpacing),+ SizedBox(height: effectiveActionsTopSpacing),_BottomSheetActions(actions: actions),],],@@ -309,7 +312,14 @@ class _BottomSheetIllustrationSlot extends StatelessWidget {child: SizedBox(width: _illustrationSlotWidth,height: _illustrationSlotHeight,- child: FittedBox(fit: BoxFit.scaleDown, child: child),+ child: Padding(+ padding: const EdgeInsets.only(bottom: _illustrationSlotBottomInset),+ child: FittedBox(+ alignment: Alignment.bottomCenter,+ fit: BoxFit.scaleDown,+ child: child,+ ),+ ),),);}@@ -377,3 +387,4 @@ class _BottomSheetActions extends StatelessWidget {const double _headerHeight = 38;const double _illustrationSlotWidth = 180;const double _illustrationSlotHeight = 120;+const double _illustrationSlotBottomInset = 11;diff --git a/mobile/packages/ente_components/test/components/bottom_sheet_component_test.dart b/mobile/packages/ente_components/test/components/bottom_sheet_component_test.dartindex 2ff99ed87c..18a69f185f 100644--- a/mobile/packages/ente_components/test/components/bottom_sheet_component_test.dart+++ b/mobile/packages/ente_components/test/components/bottom_sheet_component_test.dart@@ -79,7 +79,7 @@ void main() {matching: find.byType(FittedBox),);expect(illustrationSlot, findsOneWidget);- expect(tester.getSize(illustrationSlot), const Size(180, 120));+ expect(tester.getSize(illustrationSlot), const Size(180, 109));expect(tester.getSize(find.byKey(const ValueKey('warning-illustration'))),const Size(80, 80),