From f5fa195b678e547077c8ea68f97cc7b0ab3837d5 Mon Sep 17 00:00:00 2001 From: LeoLox <58687994+leo-lox@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:19:48 +0200 Subject: [PATCH] fix overflow issues --- .../graph_profile.dart | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/lib/presentation_layer/routes/nostr/onboarding/onboarding_follow_graph/graph_profile.dart b/lib/presentation_layer/routes/nostr/onboarding/onboarding_follow_graph/graph_profile.dart index be6d1871..21336997 100644 --- a/lib/presentation_layer/routes/nostr/onboarding/onboarding_follow_graph/graph_profile.dart +++ b/lib/presentation_layer/routes/nostr/onboarding/onboarding_follow_graph/graph_profile.dart @@ -32,21 +32,29 @@ class GraphProfile extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( - _userMetadata.name ?? _userMetadata.pubkey, - style: const TextStyle( - fontWeight: FontWeight.bold, + SizedBox( + width: 170, // Set your desired max width + child: Text( + _userMetadata.name ?? _userMetadata.pubkey, + style: const TextStyle( + fontWeight: FontWeight.bold, + ), + overflow: TextOverflow.ellipsis, ), ), const SizedBox( height: 5, ), - Text( - _userMetadata.nip05 ?? '', - style: const TextStyle( - fontSize: 12, + SizedBox( + width: 170, // Set your desired max width + child: Text( + _userMetadata.nip05 ?? '', + style: const TextStyle( + fontSize: 12, + ), + overflow: TextOverflow.ellipsis, ), - ), + ) ], ) ],