From d7d5f4b7e92bcc4c197cfd2c5b301ace60f0c9ee Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 7 Feb 2021 10:36:42 +0100 Subject: [PATCH] change: AppBar elevation --- lib/config/themes.dart | 2 ++ lib/views/chat_details.dart | 1 + lib/views/home_view.dart | 7 +------ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index 8e1aca83a..7b9bfc1d9 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -67,6 +67,7 @@ abstract class FluffyThemes { fillColor: lighten(AppConfig.primaryColor, .51), ), appBarTheme: AppBarTheme( + elevation: 1, brightness: Brightness.light, color: Colors.white, textTheme: TextTheme( @@ -116,6 +117,7 @@ abstract class FluffyThemes { ), ), appBarTheme: AppBarTheme( + elevation: 1, brightness: Brightness.dark, color: Color(0xff1D1D1D), textTheme: TextTheme( diff --git a/lib/views/chat_details.dart b/lib/views/chat_details.dart index 29ae35066..763e788d4 100644 --- a/lib/views/chat_details.dart +++ b/lib/views/chat_details.dart @@ -194,6 +194,7 @@ class _ChatDetailsState extends State { headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) => [ SliverAppBar( + elevation: Theme.of(context).appBarTheme.elevation, leading: BackButton(), expandedHeight: 300.0, floating: true, diff --git a/lib/views/home_view.dart b/lib/views/home_view.dart index 14a6d9b79..fa631fb99 100644 --- a/lib/views/home_view.dart +++ b/lib/views/home_view.dart @@ -220,12 +220,6 @@ class _HomeViewState extends State with TickerProviderStateMixin { ), ], title: Text(title), - bottom: AdaptivePageLayout.of(context).columnMode(context) - ? PreferredSize( - preferredSize: Size.fromHeight(1), - child: Divider(height: 1), - ) - : null, ), body: TabBarView( controller: _pageController, @@ -253,6 +247,7 @@ class _HomeViewState extends State with TickerProviderStateMixin { ), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, bottomNavigationBar: BottomNavigationBar( + elevation: 1, unselectedItemColor: Theme.of(context).textTheme.bodyText1.color, currentIndex: currentIndex, showSelectedLabels: true,