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

View File

@ -37,7 +37,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
controller.selectedRoomIds.length.toString(), controller.selectedRoomIds.length.toString(),
key: const ValueKey(SelectMode.select), key: const ValueKey(SelectMode.select),
) )
: TextField( : SizedBox(
height: 44,
child: TextField(
controller: controller.searchController, controller: controller.searchController,
textInputAction: TextInputAction.search, textInputAction: TextInputAction.search,
onChanged: controller.onSearchEnter, onChanged: controller.onSearchEnter,
@ -62,14 +64,16 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
tooltip: L10n.of(context)!.cancel, tooltip: L10n.of(context)!.cancel,
icon: const Icon(Icons.close_outlined), icon: const Icon(Icons.close_outlined),
onPressed: controller.cancelSearch, onPressed: controller.cancelSearch,
color: Theme.of(context).colorScheme.onBackground, color:
Theme.of(context).colorScheme.onBackground,
) )
: IconButton( : IconButton(
onPressed: Scaffold.of(context).openDrawer, onPressed: Scaffold.of(context).openDrawer,
icon: Icon( icon: Icon(
Icons.menu, Icons.menu,
color: color: Theme.of(context)
Theme.of(context).colorScheme.onBackground, .colorScheme
.onBackground,
), ),
), ),
), ),
@ -114,6 +118,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
), ),
), ),
), ),
),
actions: selectMode == SelectMode.share actions: selectMode == SelectMode.share
? null ? null
: selectMode == SelectMode.select : selectMode == SelectMode.select