chore: Make header bar in chat list thinner

This commit is contained in:
Christian Pauly 2022-08-21 07:40:50 +02:00
parent 06b232bad0
commit c31411ce33
1 changed files with 70 additions and 65 deletions

View File

@ -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