From e13a73268808228b96fb3e281335147aad82e2d2 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 16 Jan 2021 16:03:25 +0100 Subject: [PATCH] chore: redesign start first chat --- lib/l10n/intl_en.arb | 2 +- lib/views/chat_list.dart | 36 ++++++++++++++++++++---------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 6edca275..7ac4a0c9 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -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": {} diff --git a/lib/views/chat_list.dart b/lib/views/chat_list.dart index 2478a4d7..30535951 100644 --- a/lib/views/chat_list.dart +++ b/lib/views/chat_list.dart @@ -283,23 +283,27 @@ class _ChatListState extends State { searchController.text.toLowerCase() ?? ''))); if (rooms.isEmpty && (!searchMode)) { - return Center( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Icon( - searchMode - ? Icons.search_outlined - : Icons.chat_bubble_outline, - size: 80, - color: Colors.grey, - ), - Text(searchMode + return Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + searchMode + ? Icons.search_outlined + : Icons.maps_ugc_outlined, + size: 80, + color: Colors.grey, + ), + Text( + searchMode ? L10n.of(context).noRoomsFound - : L10n.of(context) - .startYourFirstChat), - ], - ), + : L10n.of(context).startYourFirstChat, + style: TextStyle( + color: Colors.grey, + fontSize: 16, + ), + ), + ], ); } final totalCount = rooms.length;