chore: Minor design improvements

This commit is contained in:
Christian Pauly 2021-01-16 22:18:22 +01:00
parent 06581e21e9
commit d4dbe83c69
3 changed files with 3 additions and 18 deletions

View File

@ -59,7 +59,7 @@ class _DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
Widget build(BuildContext context) {
return Container(
height: 40,
padding: EdgeInsets.only(right: 16),
padding: EdgeInsets.only(right: 12),
child: Material(
color: Theme.of(context).secondaryHeaderColor,
borderRadius: BorderRadius.circular(32),

View File

@ -308,23 +308,8 @@ class _ChatListState extends State<ChatList> {
);
}
final totalCount = rooms.length;
return ListView.separated(
return ListView.builder(
controller: _scrollController,
separatorBuilder:
(BuildContext context, int i) =>
i == totalCount
? ListTile(
title: Text(
L10n.of(context).publicRooms +
':',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context)
.primaryColor,
),
),
)
: Container(),
itemCount: totalCount,
itemBuilder: (BuildContext context, int i) =>
ChatListItem(

View File

@ -154,7 +154,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
);
}
return GridView.builder(
padding: EdgeInsets.all(16),
padding: EdgeInsets.all(12),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
childAspectRatio: 1,