Handle long company names

This commit is contained in:
Hillel Coren 2019-07-25 21:44:16 +03:00
parent e95b0baf82
commit bb846e0bf5
1 changed files with 10 additions and 2 deletions

View File

@ -77,7 +77,11 @@ class AppDrawer extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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: <Widget>[
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)