1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-13 18:10:50 +01:00

Minor ui change.

This commit is contained in:
stonegate 2020-08-14 20:12:44 +08:00
parent f37241d795
commit e17ed8a81f

View File

@ -175,9 +175,6 @@ class _RssResultState extends State<RssResult> {
return DefaultTabController(
length: 2,
child: Column(
children: [
ListView(
physics: const NeverScrollableScrollPhysics(),
children: [
SizedBox(
height: 140,
@ -188,6 +185,7 @@ class _RssResultState extends State<RssResult> {
padding: const EdgeInsets.only(left: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
@ -200,15 +198,14 @@ class _RssResultState extends State<RssResult> {
? OutlineButton(
highlightedBorderColor: context.accentColor,
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(100.0),
side: BorderSide(
color: context.accentColor)),
borderRadius: BorderRadius.circular(100.0),
side:
BorderSide(color: context.accentColor)),
splashColor:
context.accentColor.withOpacity(0.5),
child: Text(s.subscribe,
style: TextStyle(
color: context.accentColor)),
style:
TextStyle(color: context.accentColor)),
onPressed: () {
_subscribePodcast(_onlinePodcast);
setState(() {
@ -222,10 +219,8 @@ class _RssResultState extends State<RssResult> {
: OutlineButton(
color: context.accentColor.withOpacity(0.5),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(100.0),
side: BorderSide(
color: Colors.grey[500])),
borderRadius: BorderRadius.circular(100.0),
side: BorderSide(color: Colors.grey[500])),
highlightedBorderColor: Colors.grey[500],
disabledTextColor: Colors.grey[500],
child: Text(s.subscribe),
@ -241,8 +236,8 @@ class _RssResultState extends State<RssResult> {
fit: BoxFit.fitWidth,
alignment: Alignment.center,
imageUrl: _onlinePodcast.image,
progressIndicatorBuilder:
(context, url, downloadProgress) => Container(
progressIndicatorBuilder: (context, url, downloadProgress) =>
Container(
height: 120,
width: 120,
alignment: Alignment.center,
@ -264,11 +259,6 @@ class _RssResultState extends State<RssResult> {
],
),
),
],
),
ListView(
physics: const NeverScrollableScrollPhysics(),
children: [
Container(
height: 50,
color: context.scaffoldBackgroundColor,
@ -296,8 +286,6 @@ class _RssResultState extends State<RssResult> {
)
]),
),
],
),
Expanded(
child: TabBarView(children: [
ListView(