Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix height

AmanRajSinghMourya2ea93573f80a
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart
index 20fd1001c0..390d079fe0 100644
--- a/mobile/apps/photos/lib/ui/settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings_page.dart
@@ -90,9 +90,7 @@ class _SettingsBody extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildTitleBar(context, colorScheme),
- const SizedBox(height: 16),
- _buildEmailHeader(context, colorScheme, textTheme),
- const SizedBox(height: 16),
+ _buildEmailHeaderSection(context, colorScheme, textTheme),
if (showLoginEntry) ...[
OfflineSettingsBanner(
onGetStarted: () {
@@ -241,6 +239,30 @@ class _SettingsBody extends StatelessWidget {
);
}
+ Widget _buildEmailHeaderSection(
+ BuildContext context,
+ EnteColorScheme colorScheme,
+ EnteTextTheme textTheme,
+ ) {
+ return AnimatedBuilder(
+ animation: emailNotifier,
+ builder: (BuildContext context, Widget? child) {
+ final email = emailNotifier.value ?? "";
+ if (email.isEmpty) {
+ return const SizedBox(height: 8);
+ }
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const SizedBox(height: 16),
+ _buildEmailHeader(context, colorScheme, textTheme),
+ const SizedBox(height: 16),
+ ],
+ );
+ },
+ );
+ }
+
Widget _buildIconWidget(
List<List<dynamic>> icon,
EnteColorScheme colorScheme, {