mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
chore: Make header bar in chat list thinner
This commit is contained in:
parent
06b232bad0
commit
c31411ce33
@ -37,7 +37,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||
controller.selectedRoomIds.length.toString(),
|
||||
key: const ValueKey(SelectMode.select),
|
||||
)
|
||||
: TextField(
|
||||
: SizedBox(
|
||||
height: 44,
|
||||
child: TextField(
|
||||
controller: controller.searchController,
|
||||
textInputAction: TextInputAction.search,
|
||||
onChanged: controller.onSearchEnter,
|
||||
@ -62,14 +64,16 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||
tooltip: L10n.of(context)!.cancel,
|
||||
icon: const Icon(Icons.close_outlined),
|
||||
onPressed: controller.cancelSearch,
|
||||
color: Theme.of(context).colorScheme.onBackground,
|
||||
color:
|
||||
Theme.of(context).colorScheme.onBackground,
|
||||
)
|
||||
: IconButton(
|
||||
onPressed: Scaffold.of(context).openDrawer,
|
||||
icon: Icon(
|
||||
Icons.menu,
|
||||
color:
|
||||
Theme.of(context).colorScheme.onBackground,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onBackground,
|
||||
),
|
||||
),
|
||||
),
|
||||
@ -114,6 +118,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
actions: selectMode == SelectMode.share
|
||||
? null
|
||||
: selectMode == SelectMode.select
|
||||
|
Loading…
Reference in New Issue
Block a user