add choose user pages

This commit is contained in:
Salvatore Giordano
2020-11-06 17:09:29 +01:00
parent 73f5b33489
commit c8bbd59732
8 changed files with 507 additions and 79 deletions
+1
View File
@@ -218,6 +218,7 @@ class StreamChatThemeData {
final accentColor = Color(0xff006cff);
final isDark = theme.brightness == Brightness.dark;
return StreamChatThemeData(
secondaryColor: Color(0xffEAEAEA),
accentColor: accentColor,
primaryColor: isDark ? Colors.black : Colors.white,
primaryIconTheme: IconThemeData(
+1 -3
View File
@@ -55,9 +55,7 @@ class UserAvatar extends StatelessWidget {
errorWidget: (_, __, ___) {
return Center(
child: Text(
user.extraData?.containsKey('name') ?? false
? user.extraData['name'][0]
: '',
user.name[0],
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,