From 168dcd1d2ea7605dddd8a6308935ac75d9773bc1 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 8 Oct 2020 16:05:12 +0800 Subject: [PATCH] fix: user item text overflow --- lib/widgets/user_item.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/widgets/user_item.dart b/lib/widgets/user_item.dart index 346dc18..b8e00b4 100644 --- a/lib/widgets/user_item.dart +++ b/lib/widgets/user_item.dart @@ -79,11 +79,14 @@ class UserItem extends StatelessWidget { ), SizedBox(width: 8), ], - Text( - login, - style: TextStyle( - color: theme.palette.text, - fontSize: 16, + Expanded( + child: Text( + login, + style: TextStyle( + color: theme.palette.text, + fontSize: 16, + ), + overflow: TextOverflow.ellipsis, ), ), ],