change: AppBar elevation

This commit is contained in:
Christian Pauly 2021-02-07 10:36:42 +01:00
parent a746d14d0e
commit 5859b7cc55
3 changed files with 4 additions and 6 deletions

View File

@ -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(

View File

@ -194,6 +194,7 @@ class _ChatDetailsState extends State<ChatDetails> {
headerSliverBuilder:
(BuildContext context, bool innerBoxIsScrolled) => <Widget>[
SliverAppBar(
elevation: Theme.of(context).appBarTheme.elevation,
leading: BackButton(),
expandedHeight: 300.0,
floating: true,

View File

@ -220,12 +220,6 @@ class _HomeViewState extends State<HomeView> 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<HomeView> with TickerProviderStateMixin {
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomNavigationBar(
elevation: 1,
unselectedItemColor: Theme.of(context).textTheme.bodyText1.color,
currentIndex: currentIndex,
showSelectedLabels: true,