Skip to content

armgit / ente

Public Imported from GitHub
0

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

Align legacy kit advert layout

Neeraj Gupta12d39a346da2
diff --git a/mobile/packages/legacy/lib/pages/legacy_kit_advert_page.dart b/mobile/packages/legacy/lib/pages/legacy_kit_advert_page.dart
index c096be3d21..c4f8c5d9e0 100644
--- a/mobile/packages/legacy/lib/pages/legacy_kit_advert_page.dart
+++ b/mobile/packages/legacy/lib/pages/legacy_kit_advert_page.dart
@@ -36,7 +36,7 @@ class LegacyKitAdvertPage extends StatelessWidget {
backgroundColor: colorScheme.backgroundBase,
surfaceTintColor: Colors.transparent,
elevation: 0,
- toolbarHeight: 48,
+ toolbarHeight: 24,
leadingWidth: 48,
leading: GestureDetector(
onTap: () => Navigator.pop(context, false),
@@ -50,22 +50,26 @@ class LegacyKitAdvertPage extends StatelessWidget {
constraints: BoxConstraints(minHeight: constraints.maxHeight),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
- child: Column(
- children: [
- const SizedBox(height: 80),
- _LegacyKitAdvertContent(
- colorScheme: colorScheme,
- textTheme: textTheme,
- ),
- const SizedBox(height: 112),
- GradientButton(
- text: "Get started",
- height: 52,
- textStyle: textTheme.small.copyWith(height: 20 / 14),
- onTap: () => Navigator.pop(context, true),
- ),
- const SizedBox(height: 24),
- ],
+ child: Center(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ _LegacyKitAdvertContent(
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ const SizedBox(height: 82),
+ SizedBox(
+ width: double.infinity,
+ child: GradientButton(
+ text: "Get started",
+ height: 52,
+ textStyle: textTheme.small.copyWith(height: 20 / 14),
+ onTap: () => Navigator.pop(context, true),
+ ),
+ ),
+ ],
+ ),
),
),
),
@@ -109,7 +113,7 @@ class _LegacyKitAdvertContent extends StatelessWidget {
height: 16 / 12,
),
),
- const SizedBox(height: 32),
+ const SizedBox(height: 16),
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 279),
child: Column(
@@ -171,7 +175,7 @@ class _LegacyKitAdvertBullet extends StatelessWidget {
shape: BoxShape.circle,
),
),
- const SizedBox(width: 12),
+ const SizedBox(width: 8),
Expanded(
child: Text(
text,