chore: redesign start first chat

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

@ -1609,7 +1609,7 @@
"type": "text", "type": "text",
"placeholders": {} "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": { "@startYourFirstChat": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}

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

Loading…
Cancel
Save