Minor change.
This commit is contained in:
parent
578d8ffada
commit
b0e36558c1
|
@ -37,7 +37,8 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
TweenSequence _slideTween;
|
TweenSequence _slideTween;
|
||||||
_getSlideTween(double value) => TweenSequence<double>([
|
_getSlideTween(double value) => TweenSequence<double>([
|
||||||
TweenSequenceItem(
|
TweenSequenceItem(
|
||||||
tween: Tween<double>(begin: 0.0, end: value), weight: 4 / 5),
|
tween: Tween<double>(begin: 0.0, end: value), weight: 3 / 5),
|
||||||
|
TweenSequenceItem(tween: ConstantTween<double>(value), weight: 1 / 5),
|
||||||
TweenSequenceItem(
|
TweenSequenceItem(
|
||||||
tween: Tween<double>(begin: -value, end: 0), weight: 1 / 5)
|
tween: Tween<double>(begin: -value, end: 0), weight: 1 / 5)
|
||||||
]);
|
]);
|
||||||
|
@ -134,10 +135,11 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(
|
SizedBox(
|
||||||
|
height: 30,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: 15.0),
|
horizontal: 15.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -147,11 +149,9 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
color: context.accentColor),
|
color: context.accentColor),
|
||||||
)),
|
)),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
Container(
|
Padding(
|
||||||
height: 30,
|
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: 15),
|
horizontal: 15),
|
||||||
alignment: Alignment.bottomRight,
|
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (!import) {
|
if (!import) {
|
||||||
|
@ -162,9 +162,10 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
borderRadius:
|
||||||
height: 30,
|
BorderRadius.circular(5),
|
||||||
padding: EdgeInsets.all(5.0),
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(5.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
s.homeGroupsSeeAll,
|
s.homeGroupsSeeAll,
|
||||||
style: context.textTheme.bodyText1
|
style: context.textTheme.bodyText1
|
||||||
|
@ -251,7 +252,7 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
() => _slideTween = _getSlideTween(20));
|
() => _slideTween = _getSlideTween(20));
|
||||||
_controller.forward();
|
_controller.forward();
|
||||||
await Future.delayed(
|
await Future.delayed(
|
||||||
Duration(milliseconds: 100));
|
Duration(milliseconds: 50));
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
(_groupIndex != 0)
|
(_groupIndex != 0)
|
||||||
|
@ -271,7 +272,7 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
setState(
|
setState(
|
||||||
() => _slideTween = _getSlideTween(-20));
|
() => _slideTween = _getSlideTween(-20));
|
||||||
await Future.delayed(
|
await Future.delayed(
|
||||||
Duration(milliseconds: 100));
|
Duration(milliseconds: 50));
|
||||||
_controller.forward();
|
_controller.forward();
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -285,50 +286,49 @@ class _ScrollPodcastsState extends State<ScrollPodcasts>
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(
|
SizedBox(
|
||||||
|
height: 30,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 15.0),
|
horizontal: 15.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
groups[_groupIndex].name,
|
groups[_groupIndex].name,
|
||||||
style: context.textTheme.bodyText1
|
style: context.textTheme.bodyText1
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: Theme.of(context)
|
color: context.accentColor),
|
||||||
.accentColor),
|
|
||||||
)),
|
)),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
Container(
|
Padding(
|
||||||
height: 30.0,
|
padding: const EdgeInsets.symmetric(
|
||||||
padding:
|
horizontal: 15),
|
||||||
EdgeInsets.symmetric(horizontal: 15),
|
|
||||||
alignment: Alignment.bottomRight,
|
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (!import) {
|
if (!import) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
SlideLeftRoute(
|
SlideLeftRoute(
|
||||||
page: PodcastManage()),
|
page: PodcastManage()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
borderRadius:
|
||||||
height: 30,
|
BorderRadius.circular(5),
|
||||||
padding: EdgeInsets.all(5.0),
|
child: Padding(
|
||||||
child: Text(
|
padding: const EdgeInsets.all(5.0),
|
||||||
s.homeGroupsSeeAll,
|
child: Text(
|
||||||
style: context.textTheme.bodyText1
|
s.homeGroupsSeeAll,
|
||||||
.copyWith(
|
style: context.textTheme.bodyText1
|
||||||
color: import
|
.copyWith(
|
||||||
? context
|
color: import
|
||||||
.primaryColorDark
|
? context
|
||||||
: context.accentColor),
|
.primaryColorDark
|
||||||
),
|
: context
|
||||||
),
|
.accentColor),
|
||||||
),
|
),
|
||||||
),
|
)),
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:developer' as developer;
|
import 'dart:developer' as developer;
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:flutter_downloader/flutter_downloader.dart';
|
import 'package:flutter_downloader/flutter_downloader.dart';
|
||||||
|
|
Loading…
Reference in New Issue