Change appbar ui.

This commit is contained in:
stonega 2021-01-02 22:52:49 +08:00
parent b36d9f80be
commit c2e0330cde
1 changed files with 16 additions and 17 deletions

View File

@ -165,7 +165,6 @@ class _PodcastManageState extends State<PodcastManage>
), ),
child: Scaffold( child: Scaffold(
appBar: AppBar( appBar: AppBar(
centerTitle: true,
title: Text(context.s.groups(2)), title: Text(context.s.groups(2)),
leading: CustomBackButton(), leading: CustomBackButton(),
actions: <Widget>[ actions: <Widget>[
@ -188,9 +187,14 @@ class _PodcastManageState extends State<PodcastManage>
transitionDuration: const Duration(milliseconds: 200), transitionDuration: const Duration(milliseconds: 200),
pageBuilder: (context, animaiton, secondaryAnimation) => pageBuilder: (context, animaiton, secondaryAnimation) =>
AddGroup()), AddGroup()),
icon: Icon(Icons.add)), icon: Icon(Icons.add_circle_outline)),
), ),
_OrderMenu(), IconButton(
splashRadius: 20,
onPressed: () =>
Navigator.push(context, ScaleRoute(page: PodcastList())),
icon: Icon(Icons.all_out)),
// _OrderMenu(),
], ],
), ),
body: WillPopScope( body: WillPopScope(
@ -233,10 +237,10 @@ class _PodcastManageState extends State<PodcastManage>
backgroundColor: Colors.cyan[600], backgroundColor: Colors.cyan[600],
buttonColor: Colors.cyan[500], buttonColor: Colors.cyan[500],
description: s.featureDiscoveryGroupPodcastDes, description: s.featureDiscoveryGroupPodcastDes,
child: Container( child: PodcastGroupList(
key: ValueKey<String>(_groups[index].name), group: _groups[index],
child: key: ValueKey<String>(_groups[index].name),
PodcastGroupList(group: _groups[index])), ),
), ),
onPositionChange: (value) => onPositionChange: (value) =>
// setState(() => // setState(() =>
@ -329,9 +333,7 @@ class _PodcastManageState extends State<PodcastManage>
), ),
), ),
), ),
Padding( SizedBox(height: 20),
padding:
EdgeInsets.symmetric(vertical: 10.0)),
Material( Material(
color: Colors.transparent, color: Colors.transparent,
child: InkWell( child: InkWell(
@ -396,21 +398,18 @@ class _PodcastManageState extends State<PodcastManage>
height: 30, height: 30,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.grey[700], color: Colors.grey[700],
borderRadius: BorderRadius.all( borderRadius:
Radius.circular(10.0))), BorderRadius.circular(10.0)),
padding: padding:
EdgeInsets.symmetric(horizontal: 10), EdgeInsets.symmetric(horizontal: 10),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Icon( Icon(
Icons.delete_outline, Icons.delete,
color: Colors.red, color: Colors.red,
size: 15.0, size: 15.0,
), ),
Padding( SizedBox(width: 10),
padding: EdgeInsets.symmetric(
horizontal: 5.0),
),
Text(s.remove, Text(s.remove,
style: style:
TextStyle(color: Colors.red)), TextStyle(color: Colors.red)),