6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 80a7a96e

AuthorNKL<nikolaj.king@gmail.com>
Date2024-11-15 13:49:58 +0100
fixed small bugs on profile settings in android

Changed files

.../lib/profile_settings/components/Text_field_trailing_icon.dart   | 6 ++++--
 comwell_key_app/lib/profile_settings/profile_settings_page.dart     | 5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)

Diff

diff --git a/comwell_key_app/lib/profile_settings/components/Text_field_trailing_icon.dart b/comwell_key_app/lib/profile_settings/components/Text_field_trailing_icon.dart
index aaa00ac0..deb9bb4d 100644
--- a/comwell_key_app/lib/profile_settings/components/Text_field_trailing_icon.dart
+++ b/comwell_key_app/lib/profile_settings/components/Text_field_trailing_icon.dart
@@ -48,8 +48,10 @@ class TextFieldWithTrailingIcon extends StatelessWidget {
),
),
const SizedBox(height: 0.0),
- Text(text, style: theme.textTheme.headlineSmall),
- ],
+ SizedBox(width: 250, child:Text(
+ overflow: TextOverflow.ellipsis,
+ text, style: theme.textTheme.headlineSmall),
+ )],
),
SvgPicture.asset(
trailingIcon,
diff --git a/comwell_key_app/lib/profile_settings/profile_settings_page.dart b/comwell_key_app/lib/profile_settings/profile_settings_page.dart
index cc86a987..473043d7 100644
--- a/comwell_key_app/lib/profile_settings/profile_settings_page.dart
+++ b/comwell_key_app/lib/profile_settings/profile_settings_page.dart
@@ -83,6 +83,7 @@ class ProfileSettingsPage extends StatelessWidget {
),
const SizedBox(height: 8),
TextFieldWithTrailingIcon(
+
title: "profil_settings_address".tr(),
text:
"${loadedState.user.address.street}, ${loadedState.user.address.city}, ${loadedState.user.address.zipCode}, ${loadedState.user.address.country}",
@@ -111,8 +112,8 @@ class ProfileSettingsPage extends StatelessWidget {
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(20)),
),
- minimumSize: const Size(135, 36),
- maximumSize: const Size(135, 36),
+ minimumSize: const Size(135, 40),
+ maximumSize: const Size(155, 40),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,