From bb846e0bf5bf6ef4bade08af6c2091afcf1b966f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 25 Jul 2019 21:44:16 +0300 Subject: [PATCH] Handle long company names --- lib/ui/app/app_drawer.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/ui/app/app_drawer.dart b/lib/ui/app/app_drawer.dart index 721afe4f7..4707ed683 100644 --- a/lib/ui/app/app_drawer.dart +++ b/lib/ui/app/app_drawer.dart @@ -77,7 +77,11 @@ class AppDrawer extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ - Text(company.name, style: Theme.of(context).textTheme.subhead), + Text( + company.name, + style: Theme.of(context).textTheme.subhead, + overflow: TextOverflow.ellipsis, + ), Text(company.user.email, overflow: TextOverflow.ellipsis, style: Theme.of(context).textTheme.caption), @@ -119,7 +123,11 @@ class AppDrawer extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ - Text(company.name), + Text( + company.name, + style: Theme.of(context).textTheme.subhead, + overflow: TextOverflow.ellipsis, + ), Text(company.user.email, overflow: TextOverflow.ellipsis, style: Theme.of(context).textTheme.caption)