Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Cap Ready to backup copy at the design width

r4khulc533f409efe0
diff --git a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
index 1e1bc3ac1f..fb15a38ffe 100644
--- a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
@@ -153,27 +153,30 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 44),
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- SizedBox(
- width: 155,
- height: 168,
- child: _buildPermissionsAnimation(),
- ),
- const SizedBox(height: Spacing.xl),
- Text(
- context.strings.readyToBackupTitle,
- textAlign: TextAlign.center,
- style: TextStyles.display2.copyWith(color: colorScheme.content),
- ),
- const SizedBox(height: Spacing.sm),
- Text(
- context.strings.readyToBackupSubtitle,
- textAlign: TextAlign.center,
- style: TextStyles.body.copyWith(color: colorScheme.contentLight),
- ),
- ],
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(maxWidth: 287),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ SizedBox(
+ width: 155,
+ height: 168,
+ child: _buildPermissionsAnimation(),
+ ),
+ const SizedBox(height: Spacing.xl),
+ Text(
+ context.strings.readyToBackupTitle,
+ textAlign: TextAlign.center,
+ style: TextStyles.display2.copyWith(color: colorScheme.content),
+ ),
+ const SizedBox(height: Spacing.sm),
+ Text(
+ context.strings.readyToBackupSubtitle,
+ textAlign: TextAlign.center,
+ style: TextStyles.body.copyWith(color: colorScheme.contentLight),
+ ),
+ ],
+ ),
),
);
}