mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-25 19:44:17 +01:00
chore: Minor design improvements
This commit is contained in:
parent
06581e21e9
commit
d4dbe83c69
@ -59,7 +59,7 @@ class _DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 40,
|
height: 40,
|
||||||
padding: EdgeInsets.only(right: 16),
|
padding: EdgeInsets.only(right: 12),
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context).secondaryHeaderColor,
|
color: Theme.of(context).secondaryHeaderColor,
|
||||||
borderRadius: BorderRadius.circular(32),
|
borderRadius: BorderRadius.circular(32),
|
||||||
|
@ -308,23 +308,8 @@ class _ChatListState extends State<ChatList> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
final totalCount = rooms.length;
|
final totalCount = rooms.length;
|
||||||
return ListView.separated(
|
return ListView.builder(
|
||||||
controller: _scrollController,
|
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,
|
itemCount: totalCount,
|
||||||
itemBuilder: (BuildContext context, int i) =>
|
itemBuilder: (BuildContext context, int i) =>
|
||||||
ChatListItem(
|
ChatListItem(
|
||||||
|
@ -154,7 +154,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return GridView.builder(
|
return GridView.builder(
|
||||||
padding: EdgeInsets.all(16),
|
padding: EdgeInsets.all(12),
|
||||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
crossAxisCount: 2,
|
crossAxisCount: 2,
|
||||||
childAspectRatio: 1,
|
childAspectRatio: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user