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(
|
||||
floating: true,
|
||||
pinned: true,
|
||||
snap: false,
|
||||
primary: true,
|
||||
title: Text(HomeAssistant().locationName ?? ""),
|
||||
actions: <Widget>[
|
||||
@ -623,6 +624,31 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
|
||||
_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(
|
||||
controller: _viewsTabController,
|
||||
tabs: buildUIViewTabs(),
|
||||
|
Reference in New Issue
Block a user