From 3a1f28e6955cfd9c0a16eb811a6b82a0d9bdb987 Mon Sep 17 00:00:00 2001 From: Ivansyah Date: Thu, 18 Dec 2025 12:03:53 +0700 Subject: [PATCH] feat: refactor code --- lib/screens/widgets/custom_appbar.dart | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/screens/widgets/custom_appbar.dart b/lib/screens/widgets/custom_appbar.dart index 14474ff..1616ef0 100644 --- a/lib/screens/widgets/custom_appbar.dart +++ b/lib/screens/widgets/custom_appbar.dart @@ -181,11 +181,17 @@ class _CustomAppBarState extends State { Column( crossAxisAlignment: CrossAxisAlignment.end, children: [ - Text( - "Hello, ${AuthService.instance.currentUser!.displayName}!", - style: const TextStyle( - fontSize: 12, - fontWeight: FontWeight.bold, + Container( + constraints: const BoxConstraints( + maxWidth: 120, + ), + child: Text( + overflow: TextOverflow.ellipsis, + "Hello, ${AuthService.instance.currentUser!.displayName}!", + style: const TextStyle( + fontSize: 12, + fontWeight: FontWeight.bold, + ), ), ), Text(