chore: Follow up appbar design

This commit is contained in:
Christian Pauly 2022-07-12 21:37:04 +02:00
parent f39213ca9b
commit b50355f33e
3 changed files with 9 additions and 7 deletions

View File

@ -254,10 +254,11 @@ class ChatView extends StatelessWidget {
bottomRight:
Radius.circular(AppConfig.borderRadius),
),
elevation: 6,
elevation: 4,
shadowColor: Theme.of(context)
.dividerColor
.withAlpha(100),
.colorScheme
.onBackground
.withAlpha(64),
clipBehavior: Clip.hardEdge,
color: Theme.of(context).brightness ==
Brightness.light

View File

@ -172,9 +172,9 @@ class Message extends StatelessWidget {
padding: const EdgeInsets.only(left: 8),
child: Material(
color: noBubble ? Colors.transparent : color,
elevation: event.type == EventTypes.Sticker ? 0 : 6,
elevation: event.type == EventTypes.Sticker ? 0 : 4,
shadowColor:
Theme.of(context).secondaryHeaderColor.withAlpha(100),
Theme.of(context).colorScheme.onBackground.withAlpha(64),
borderRadius: borderRadius,
clipBehavior: Clip.antiAlias,
child: InkWell(

View File

@ -46,8 +46,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
topLeft: Radius.circular(AppConfig.borderRadius),
topRight: Radius.circular(AppConfig.borderRadius),
),
elevation: 6,
shadowColor: Theme.of(context).dividerColor.withAlpha(100),
elevation: 4,
shadowColor:
Theme.of(context).colorScheme.onBackground.withAlpha(64),
child: TextField(
controller: controller.searchController,
textInputAction: TextInputAction.search,