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), fillColor: lighten(AppConfig.primaryColor, .51),
), ),
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
elevation: 1,
brightness: Brightness.light, brightness: Brightness.light,
color: Colors.white, color: Colors.white,
textTheme: TextTheme( textTheme: TextTheme(
@ -116,6 +117,7 @@ abstract class FluffyThemes {
), ),
), ),
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
elevation: 1,
brightness: Brightness.dark, brightness: Brightness.dark,
color: Color(0xff1D1D1D), color: Color(0xff1D1D1D),
textTheme: TextTheme( textTheme: TextTheme(

View File

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

View File

@ -220,12 +220,6 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
), ),
], ],
title: Text(title), title: Text(title),
bottom: AdaptivePageLayout.of(context).columnMode(context)
? PreferredSize(
preferredSize: Size.fromHeight(1),
child: Divider(height: 1),
)
: null,
), ),
body: TabBarView( body: TabBarView(
controller: _pageController, controller: _pageController,
@ -253,6 +247,7 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
), ),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomNavigationBar( bottomNavigationBar: BottomNavigationBar(
elevation: 1,
unselectedItemColor: Theme.of(context).textTheme.bodyText1.color, unselectedItemColor: Theme.of(context).textTheme.bodyText1.color,
currentIndex: currentIndex, currentIndex: currentIndex,
showSelectedLabels: true, showSelectedLabels: true,