From c2e0330cde939caa45a510b1f86096f30d4d2871 Mon Sep 17 00:00:00 2001 From: stonega Date: Sat, 2 Jan 2021 22:52:49 +0800 Subject: [PATCH] Change appbar ui. --- lib/podcasts/podcast_manage.dart | 33 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/podcasts/podcast_manage.dart b/lib/podcasts/podcast_manage.dart index 288f165..7d5ef0b 100644 --- a/lib/podcasts/podcast_manage.dart +++ b/lib/podcasts/podcast_manage.dart @@ -165,7 +165,6 @@ class _PodcastManageState extends State ), child: Scaffold( appBar: AppBar( - centerTitle: true, title: Text(context.s.groups(2)), leading: CustomBackButton(), actions: [ @@ -188,9 +187,14 @@ class _PodcastManageState extends State transitionDuration: const Duration(milliseconds: 200), pageBuilder: (context, animaiton, secondaryAnimation) => 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( @@ -233,10 +237,10 @@ class _PodcastManageState extends State backgroundColor: Colors.cyan[600], buttonColor: Colors.cyan[500], description: s.featureDiscoveryGroupPodcastDes, - child: Container( - key: ValueKey(_groups[index].name), - child: - PodcastGroupList(group: _groups[index])), + child: PodcastGroupList( + group: _groups[index], + key: ValueKey(_groups[index].name), + ), ), onPositionChange: (value) => // setState(() => @@ -329,9 +333,7 @@ class _PodcastManageState extends State ), ), ), - Padding( - padding: - EdgeInsets.symmetric(vertical: 10.0)), + SizedBox(height: 20), Material( color: Colors.transparent, child: InkWell( @@ -396,21 +398,18 @@ class _PodcastManageState extends State height: 30, decoration: BoxDecoration( color: Colors.grey[700], - borderRadius: BorderRadius.all( - Radius.circular(10.0))), + borderRadius: + BorderRadius.circular(10.0)), padding: EdgeInsets.symmetric(horizontal: 10), child: Row( children: [ Icon( - Icons.delete_outline, + Icons.delete, color: Colors.red, size: 15.0, ), - Padding( - padding: EdgeInsets.symmetric( - horizontal: 5.0), - ), + SizedBox(width: 10), Text(s.remove, style: TextStyle(color: Colors.red)),