mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
chore: redesign start first chat
This commit is contained in:
parent
cf07eed211
commit
e13a732688
@ -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,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
Text(searchMode
|
Text(
|
||||||
|
searchMode
|
||||||
? L10n.of(context).noRoomsFound
|
? L10n.of(context).noRoomsFound
|
||||||
: L10n.of(context)
|
: L10n.of(context).startYourFirstChat,
|
||||||
.startYourFirstChat),
|
style: TextStyle(
|
||||||
],
|
color: Colors.grey,
|
||||||
|
fontSize: 16,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final totalCount = rooms.length;
|
final totalCount = rooms.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user