|
|
|
@ -36,7 +36,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,
|
|
|
|
@ -59,7 +61,8 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|
|
|
|
onPressed: Scaffold.of(context).openDrawer,
|
|
|
|
|
icon: Icon(
|
|
|
|
|
Icons.menu,
|
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).colorScheme.onBackground,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
suffixIcon: Row(
|
|
|
|
@ -103,6 +106,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
actions: selectMode == SelectMode.share
|
|
|
|
|
? null
|
|
|
|
|
: selectMode == SelectMode.select
|
|
|
|
|