|
|
|
@ -106,11 +106,30 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
title: Text(widget.title),
|
|
|
|
|
),
|
|
|
|
|
body: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Wrap(
|
|
|
|
|
body: CupertinoScrollbar(
|
|
|
|
|
child: CustomScrollView(
|
|
|
|
|
slivers: <Widget>[
|
|
|
|
|
_topButtons(),
|
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
child: calendar,
|
|
|
|
|
),
|
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Text(
|
|
|
|
|
' $_selectDate ',
|
|
|
|
|
style: TextStyle(color: Theme.of(context).focusColor),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget _topButtons() {
|
|
|
|
|
return SliverToBoxAdapter(
|
|
|
|
|
child: Wrap(
|
|
|
|
|
direction: Axis.vertical,
|
|
|
|
|
crossAxisAlignment: WrapCrossAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
@ -165,16 +184,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
calendar,
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
' $_selectDate ',
|
|
|
|
|
style: TextStyle(color: Theme.of(context).focusColor),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|