From 9b96781e465ccf795ecbd3ad47cfab7ea44cd14e Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 8 Jul 2022 17:58:31 +0200 Subject: [PATCH] chore: Design follow up fixes --- lib/pages/chat_list/chat_list_header.dart | 1 + lib/pages/chat_list/stories_header.dart | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pages/chat_list/chat_list_header.dart b/lib/pages/chat_list/chat_list_header.dart index 8e4a9597..68e890e4 100644 --- a/lib/pages/chat_list/chat_list_header.dart +++ b/lib/pages/chat_list/chat_list_header.dart @@ -41,6 +41,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget { textInputAction: TextInputAction.search, onChanged: controller.onSearchEnter, decoration: InputDecoration( + fillColor: Theme.of(context).colorScheme.surfaceVariant, contentPadding: EdgeInsets.zero, border: OutlineInputBorder( borderRadius: BorderRadius.circular(90), diff --git a/lib/pages/chat_list/stories_header.dart b/lib/pages/chat_list/stories_header.dart index 66315d72..8ef8556e 100644 --- a/lib/pages/chat_list/stories_header.dart +++ b/lib/pages/chat_list/stories_header.dart @@ -121,7 +121,7 @@ class StoriesHeader extends StatelessWidget { return SizedBox( height: 98, child: ListView.builder( - padding: const EdgeInsets.symmetric(horizontal: 8), + padding: const EdgeInsets.symmetric(horizontal: 12), scrollDirection: Axis.horizontal, itemCount: stories.length, itemBuilder: (context, i) { @@ -216,7 +216,6 @@ class _StoryButton extends StatelessWidget { children: [ const SizedBox(height: 8), Material( - shadowColor: Theme.of(context).appBarTheme.shadowColor, borderRadius: BorderRadius.circular(Avatar.defaultSize), child: Container( padding: const EdgeInsets.all(3), @@ -232,7 +231,9 @@ class _StoryButton extends StatelessWidget { end: Alignment.bottomRight, ) : null, - color: unread ? null : Theme.of(context).dividerColor, + color: unread + ? null + : Theme.of(context).colorScheme.surfaceVariant, borderRadius: BorderRadius.circular(Avatar.defaultSize), ), child: Stack(