chore: redesign start first chat

onboarding
Christian Pauly 5 years ago
parent 64e049c806
commit 1dd0a3f983

@ -1609,7 +1609,7 @@
"type": "text",
"placeholders": {}
},
"startYourFirstChat": "Start your first chat :-)",
"startYourFirstChat": "Start your first chat right now! 🙂\n- Tap on "+"\n- Enter the username of a friend\n- Have fun chatting",
"@startYourFirstChat": {
"type": "text",
"placeholders": {}

@ -283,23 +283,27 @@ class _ChatListState extends State<ChatList> {
searchController.text.toLowerCase() ??
'')));
if (rooms.isEmpty && (!searchMode)) {
return Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Icon(
searchMode
? Icons.search_outlined
: Icons.chat_bubble_outline,
size: 80,
return Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Icon(
searchMode
? Icons.search_outlined
: Icons.maps_ugc_outlined,
size: 80,
color: Colors.grey,
),
Text(
searchMode
? L10n.of(context).noRoomsFound
: L10n.of(context).startYourFirstChat,
style: TextStyle(
color: Colors.grey,
fontSize: 16,
),
Text(searchMode
? L10n.of(context).noRoomsFound
: L10n.of(context)
.startYourFirstChat),
],
),
),
],
);
}
final totalCount = rooms.length;

Loading…
Cancel
Save