Change header ui.

This commit is contained in:
stonega 2021-01-02 22:51:45 +08:00
parent 8be47b0ac0
commit 7cf751fed0
1 changed files with 19 additions and 47 deletions

View File

@ -779,32 +779,19 @@ class _PodcastDetailState extends State<PodcastDetail> {
SliverAppBar( SliverAppBar(
brightness: Brightness.dark, brightness: Brightness.dark,
actions: <Widget>[ actions: <Widget>[
Container( IconButton(
width: 30, icon: Icon(Icons.more_vert),
height: 30, splashRadius: 20,
margin: tooltip: s.menu,
EdgeInsets.symmetric(horizontal: 10), onPressed: () => generalSheet(
decoration: BoxDecoration( context,
color: widget.podcastLocal.primaryColor title: widget.podcastLocal.title,
.colorizedark() child: PodcastSetting(
.withOpacity(0.6), podcastLocal: widget.podcastLocal),
shape: BoxShape.circle, ).then((value) {
), _checkPodcast();
child: IconButton( if (mounted) setState(() {});
icon: Icon(Icons.more_vert), }),
padding: EdgeInsets.zero,
splashRadius: 15,
tooltip: s.menu,
onPressed: () => generalSheet(
context,
title: widget.podcastLocal.title,
child: PodcastSetting(
podcastLocal: widget.podcastLocal),
).then((value) {
_checkPodcast();
setState(() {});
}),
),
), ),
//_rightTopMenu(context) //_rightTopMenu(context)
], ],
@ -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(