change: Minor design improvements
This commit is contained in:
parent
1c80090ccb
commit
387e027885
8 changed files with 80 additions and 37 deletions
|
|
@ -173,11 +173,26 @@ class _DiscoverState extends State<Discover> {
|
|||
}
|
||||
final publicRoomsResponse = snapshot.data;
|
||||
if (publicRoomsResponse.chunk.isEmpty) {
|
||||
return Center(
|
||||
child: Text(
|
||||
'No public groups found...',
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SizedBox(height: 32),
|
||||
Icon(
|
||||
Icons.search_outlined,
|
||||
size: 80,
|
||||
color: Colors.grey,
|
||||
),
|
||||
Center(
|
||||
child: Text(
|
||||
L10n.of(context).noPublicRoomsFound,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.grey,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
return GridView.builder(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue