Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Keep Skip within the app bar at large text sizes

r4khul3c887c93d69d
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 fb15a38ffe..1a2f29e49c 100644
--- a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
@@ -119,29 +119,36 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {
Widget _buildSkipAction(BuildContext context) {
final color = context.componentColors.primary;
- return GestureDetector(
- key: const ValueKey("skipForNowButton"),
- behavior: HitTestBehavior.opaque,
- onTap: _onTapSkip,
- child: ConstrainedBox(
- constraints: const BoxConstraints(minHeight: 48),
- child: Padding(
- padding: const EdgeInsets.only(left: 12, right: 18),
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- Text(
- context.strings.skip,
- style: TextStyles.body.copyWith(color: color),
- ),
- const SizedBox(width: Spacing.xs),
- HugeIcon(
- icon: HugeIcons.strokeRoundedArrowRight01,
- size: IconSizes.small,
- strokeWidth: 2,
- color: color,
- ),
- ],
+ return MediaQuery.withClampedTextScaling(
+ maxScaleFactor: 1.3,
+ child: GestureDetector(
+ key: const ValueKey("skipForNowButton"),
+ behavior: HitTestBehavior.opaque,
+ onTap: _onTapSkip,
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(minHeight: 48),
+ child: Padding(
+ padding: const EdgeInsets.only(left: 12, right: 18),
+ child: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Flexible(
+ child: Text(
+ context.strings.skip,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: TextStyles.body.copyWith(color: color),
+ ),
+ ),
+ const SizedBox(width: Spacing.xs),
+ HugeIcon(
+ icon: HugeIcons.strokeRoundedArrowRight01,
+ size: IconSizes.small,
+ strokeWidth: 2,
+ color: color,
+ ),
+ ],
+ ),
),
),
),