Change header ui.
This commit is contained in:
parent
8be47b0ac0
commit
7cf751fed0
|
@ -779,21 +779,9 @@ class _PodcastDetailState extends State<PodcastDetail> {
|
||||||
SliverAppBar(
|
SliverAppBar(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
Container(
|
IconButton(
|
||||||
width: 30,
|
|
||||||
height: 30,
|
|
||||||
margin:
|
|
||||||
EdgeInsets.symmetric(horizontal: 10),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: widget.podcastLocal.primaryColor
|
|
||||||
.colorizedark()
|
|
||||||
.withOpacity(0.6),
|
|
||||||
shape: BoxShape.circle,
|
|
||||||
),
|
|
||||||
child: IconButton(
|
|
||||||
icon: Icon(Icons.more_vert),
|
icon: Icon(Icons.more_vert),
|
||||||
padding: EdgeInsets.zero,
|
splashRadius: 20,
|
||||||
splashRadius: 15,
|
|
||||||
tooltip: s.menu,
|
tooltip: s.menu,
|
||||||
onPressed: () => generalSheet(
|
onPressed: () => generalSheet(
|
||||||
context,
|
context,
|
||||||
|
@ -802,10 +790,9 @@ class _PodcastDetailState extends State<PodcastDetail> {
|
||||||
podcastLocal: widget.podcastLocal),
|
podcastLocal: widget.podcastLocal),
|
||||||
).then((value) {
|
).then((value) {
|
||||||
_checkPodcast();
|
_checkPodcast();
|
||||||
setState(() {});
|
if (mounted) setState(() {});
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
//_rightTopMenu(context)
|
//_rightTopMenu(context)
|
||||||
],
|
],
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
|
@ -823,26 +810,9 @@ class _PodcastDetailState extends State<PodcastDetail> {
|
||||||
return FlexibleSpaceBar(
|
return FlexibleSpaceBar(
|
||||||
background: Stack(
|
background: Stack(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// if (widget.podcastLocal.provider
|
|
||||||
// .contains('fireside'))
|
|
||||||
// Positioned.fill(
|
|
||||||
// child: FutureBuilder(
|
|
||||||
// future: _getHosts(
|
|
||||||
// widget.podcastLocal),
|
|
||||||
// builder: (context, snapshot) {
|
|
||||||
// if (snapshot.hasData) {
|
|
||||||
// return CachedNetworkImage(
|
|
||||||
// imageUrl:
|
|
||||||
// snapshot.data.item1,
|
|
||||||
// fit: BoxFit.fill,
|
|
||||||
// );
|
|
||||||
// } else
|
|
||||||
// return Center();
|
|
||||||
// }),
|
|
||||||
// ),
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 100 + context.paddingTop),
|
top: 120 + context.paddingTop),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () => setState(
|
onTap: () => setState(
|
||||||
() => _showInfo = !_showInfo),
|
() => _showInfo = !_showInfo),
|
||||||
|
@ -891,16 +861,18 @@ class _PodcastDetailState extends State<PodcastDetail> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
UpDownIndicator(_showInfo, color: Colors.white),
|
UpDownIndicator(
|
||||||
|
status: _showInfo,
|
||||||
|
color: Colors.white),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.bottomRight,
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 10, right: 10),
|
top: 10, right: 10, bottom: 20),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 120,
|
height: 120,
|
||||||
child: Image.file(File(
|
child: Image.file(File(
|
||||||
|
|
Loading…
Reference in New Issue