1
0
mirror of https://github.com/stonega/tsacdop synced 2025-03-06 04:07:49 +01:00

modified: .circleci/config.yml

This commit is contained in:
stonegate 2020-05-19 01:46:13 +08:00
parent 860e2ed626
commit d23502ed97
5 changed files with 209 additions and 218 deletions

View File

@ -21,8 +21,5 @@ jobs:
- run:
name: Build the Android version
command: flutter build appbundle --no-shrink
- run:
name: Build the Android apks
command: flutter build apk --split-per-abi --no-shrink
- store_artifacts:
path: build/app/outputs/

View File

@ -18,6 +18,7 @@ import '../util/context_extension.dart';
import '../util/custompaint.dart';
import '../state/download_state.dart';
import '../state/podcast_group.dart';
import '../state/subscribe_podcast.dart';
import 'playlist.dart';
import 'importompl.dart';
import 'audioplayer.dart';
@ -473,7 +474,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
snapshot.data.length == _top) _loadMoreEpisode();
return true;
},
child: CustomScrollView(
child: Selector<SubscribeWorker, bool>(
selector: (_, worker) => worker.created,
builder: (context, created, child) {
return CustomScrollView(
key: PageStorageKey<String>('update'),
physics: const AlwaysScrollableScrollPhysics(),
slivers: <Widget>[
@ -484,12 +488,14 @@ class _RecentUpdateState extends State<_RecentUpdate>
child: Row(
children: <Widget>[
Consumer<GroupList>(
builder: (context, groupList, child) =>
builder:
(context, groupList, child) =>
Material(
color: Colors.transparent,
child: PopupMenuButton<String>(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(
borderRadius:
BorderRadius.all(
Radius.circular(10))),
elevation: 1,
tooltip: 'Groups fliter',
@ -498,12 +504,13 @@ class _RecentUpdateState extends State<_RecentUpdate>
horizontal: 20),
height: 50,
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisSize:
MainAxisSize.min,
children: <Widget>[
Text(_groupName),
Padding(
padding:
EdgeInsets.symmetric(
padding: EdgeInsets
.symmetric(
horizontal: 5),
),
Icon(
@ -529,11 +536,13 @@ class _RecentUpdateState extends State<_RecentUpdate>
_group = ['All'];
});
} else {
groupList.groups.forEach((group) {
groupList.groups
.forEach((group) {
if (group.name == value) {
setState(() {
_groupName = value;
_group = group.podcastList;
_group =
group.podcastList;
});
}
});
@ -572,12 +581,14 @@ class _RecentUpdateState extends State<_RecentUpdate>
_group);
if (mounted)
setState(() {});
Fluttertoast.showToast(
Fluttertoast
.showToast(
msg: _groupName ==
'All'
? '${snapshot.data} episode added to playlist'
: '${snapshot.data} episode in $_groupName added to playlist',
gravity: ToastGravity
gravity:
ToastGravity
.BOTTOM,
);
}),
@ -630,8 +641,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
child: CustomPaint(
painter: LayoutPainter(
0,
context.textTheme
.bodyText1.color),
context
.textTheme
.bodyText1
.color),
),
)
: SizedBox(
@ -640,8 +653,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
child: CustomPaint(
painter: LayoutPainter(
1,
context.textTheme
.bodyText1.color),
context
.textTheme
.bodyText1
.color),
),
),
)),
@ -664,8 +679,9 @@ class _RecentUpdateState extends State<_RecentUpdate>
childCount: 1,
),
),
]),
)
]);
},
))
: Center();
},
);

View File

@ -1,24 +0,0 @@
import 'package:flutter/foundation.dart';
enum ImportState{start, import, parse, complete, stop, error}
class ImportOmpl extends ChangeNotifier{
ImportState _importState = ImportState.stop;
String _rssTitle;
String get rsstitle => _rssTitle;
set rssTitle(String title){
_rssTitle = title;
notifyListeners();
}
ImportState get importState => _importState;
set importState(ImportState state){
if(_importState != state)
{_importState = state;
notifyListeners();
}
}
}

View File

@ -36,6 +36,7 @@ class SubscribeWorker extends ChangeNotifier {
SubscribeItem _subscribeItem;
SubscribeItem _currentSubscribeItem = SubscribeItem('', '');
bool _created = false;
bool get created => _created;
setSubscribeItem(SubscribeItem item) async {
_subscribeItem = item;
@ -71,6 +72,7 @@ class SubscribeWorker extends ChangeNotifier {
subIsolate = null;
_currentSubscribeItem = SubscribeItem('', '');
_created = false;
notifyListeners();
}
});
}

View File

@ -148,7 +148,7 @@ class EpisodeGrid extends StatelessWidget {
: episodes[index].primaryColor.colorizeLight();
return FadeTransition(
opacity: Tween<double>(
begin: 0,
begin: index < 12 ? 0 : 1,
end: 1,
).animate(animation),
child: Selector<AudioPlayerNotifier,