UI nit picks

This commit is contained in:
xsahil03x
2020-11-20 12:06:00 +05:30
parent 822547b644
commit 389656a477
4 changed files with 124 additions and 76 deletions
+13 -8
View File
@@ -59,13 +59,18 @@ class UserItem extends StatelessWidget {
}
},
leading: UserAvatar(
user: user,
showOnlineStatus: true,
onTap: (user) {
if (onImageTap != null) {
onImageTap(user);
}
}),
user: user,
showOnlineStatus: true,
onTap: (user) {
if (onImageTap != null) {
onImageTap(user);
}
},
constraints: BoxConstraints.tightFor(
height: 40,
width: 40,
),
),
trailing: selected
? CircleAvatar(
child: Icon(
@@ -75,7 +80,7 @@ class UserItem extends StatelessWidget {
radius: 10,
)
: null,
title: Text(user.name),
title: Text(user.name,style: TextStyle(fontWeight: FontWeight.bold),),
subtitle: showLastSeen ? _buildLastActive(context) : null,
);
}
+7 -3
View File
@@ -376,12 +376,16 @@ class _UserListViewState extends State<UserListView>
headerItem: (header) {
return Container(
key: ValueKey<String>('HEADER-$header'),
color: Colors.grey.shade100,
color: Colors.black.withOpacity(0.05),
child: Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.symmetric(horizontal:8.0,vertical: 6),
child: Text(
header,
style: TextStyle(fontWeight: FontWeight.w500),
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12,
color:Colors.black.withOpacity(0.3)
),
),
),
);