Quick actions bar test
This commit is contained in:
parent
840e266381
commit
05ae954b30
@ -576,6 +576,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
|
|||||||
SliverAppBar(
|
SliverAppBar(
|
||||||
floating: true,
|
floating: true,
|
||||||
pinned: true,
|
pinned: true,
|
||||||
|
snap: false,
|
||||||
primary: true,
|
primary: true,
|
||||||
title: Text(HomeAssistant().locationName ?? ""),
|
title: Text(HomeAssistant().locationName ?? ""),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
@ -623,6 +624,31 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
|
|||||||
_scaffoldKey.currentState.openDrawer();
|
_scaffoldKey.currentState.openDrawer();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
expandedHeight: 130,
|
||||||
|
flexibleSpace: FlexibleSpaceBar(
|
||||||
|
title: Padding(
|
||||||
|
padding: EdgeInsets.only(bottom: 15),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: <Widget>[
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.add),
|
||||||
|
color: Colors.white,
|
||||||
|
onPressed: () {
|
||||||
|
Logger.d('First');
|
||||||
|
},
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.add),
|
||||||
|
color: Colors.white,
|
||||||
|
onPressed: () {
|
||||||
|
Logger.d('First');
|
||||||
|
},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
) ),
|
||||||
|
centerTitle: true,
|
||||||
|
),
|
||||||
bottom: empty ? null : TabBar(
|
bottom: empty ? null : TabBar(
|
||||||
controller: _viewsTabController,
|
controller: _viewsTabController,
|
||||||
tabs: buildUIViewTabs(),
|
tabs: buildUIViewTabs(),
|
||||||
|
Reference in New Issue
Block a user