mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-10-14 19:37:24 +02:00
chore: Adjust design
This commit is contained in:
parent
64459c1304
commit
3c7926c81a
@ -164,7 +164,7 @@ class ChatView extends StatelessWidget {
|
|||||||
builder: (BuildContext context, snapshot) {
|
builder: (BuildContext context, snapshot) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 4,
|
elevation: 2,
|
||||||
actionsIconTheme: IconThemeData(
|
actionsIconTheme: IconThemeData(
|
||||||
color: controller.selectedEvents.isEmpty
|
color: controller.selectedEvents.isEmpty
|
||||||
? null
|
? null
|
||||||
|
@ -36,7 +36,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,
|
||||||
@ -59,7 +61,8 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
onPressed: Scaffold.of(context).openDrawer,
|
onPressed: Scaffold.of(context).openDrawer,
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.menu,
|
Icons.menu,
|
||||||
color: Theme.of(context).colorScheme.onBackground,
|
color:
|
||||||
|
Theme.of(context).colorScheme.onBackground,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
suffixIcon: Row(
|
suffixIcon: Row(
|
||||||
@ -103,6 +106,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
actions: selectMode == SelectMode.share
|
actions: selectMode == SelectMode.share
|
||||||
? null
|
? null
|
||||||
: selectMode == SelectMode.select
|
: selectMode == SelectMode.select
|
||||||
|
@ -157,9 +157,9 @@ class ChatListItem extends StatelessWidget {
|
|||||||
: 0.0;
|
: 0.0;
|
||||||
return Material(
|
return Material(
|
||||||
color: selected
|
color: selected
|
||||||
? Theme.of(context).primaryColor.withAlpha(100)
|
? Theme.of(context).colorScheme.primaryContainer
|
||||||
: activeChat
|
: activeChat
|
||||||
? Theme.of(context).secondaryHeaderColor
|
? Theme.of(context).colorScheme.secondaryContainer
|
||||||
: Colors.transparent,
|
: Colors.transparent,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
selected: selected || activeChat,
|
selected: selected || activeChat,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user