Minor ui fixes

This commit is contained in:
xsahil03x
2020-11-19 17:47:50 +05:30
parent 08bc56799d
commit 97b03910f1
+3 -2
View File
@@ -671,7 +671,6 @@ class _NewGroupChatScreenState extends State<NewGroupChatScreen> {
horizontal: 8, horizontal: 8,
), ),
child: TextField( child: TextField(
onTap: () {},
controller: _controller, controller: _controller,
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: Icon(StreamIcons.search), prefixIcon: Icon(StreamIcons.search),
@@ -811,6 +810,8 @@ class _GroupChatDetailsScreenState extends State<GroupChatDetailsScreen> {
bool _isGroupNameEmpty = true; bool _isGroupNameEmpty = true;
int get _totalUsers => _selectedUsers.length;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@@ -920,7 +921,7 @@ class _GroupChatDetailsScreenState extends State<GroupChatDetailsScreen> {
horizontal: 8, horizontal: 8,
), ),
child: Text( child: Text(
'5 Members', '$_totalUsers ${_totalUsers > 1 ? 'Members' : 'Member'}',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),