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:
parent
860e2ed626
commit
d23502ed97
@ -21,8 +21,5 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build the Android version
|
name: Build the Android version
|
||||||
command: flutter build appbundle --no-shrink
|
command: flutter build appbundle --no-shrink
|
||||||
- run:
|
|
||||||
name: Build the Android apks
|
|
||||||
command: flutter build apk --split-per-abi --no-shrink
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build/app/outputs/
|
path: build/app/outputs/
|
@ -18,6 +18,7 @@ import '../util/context_extension.dart';
|
|||||||
import '../util/custompaint.dart';
|
import '../util/custompaint.dart';
|
||||||
import '../state/download_state.dart';
|
import '../state/download_state.dart';
|
||||||
import '../state/podcast_group.dart';
|
import '../state/podcast_group.dart';
|
||||||
|
import '../state/subscribe_podcast.dart';
|
||||||
import 'playlist.dart';
|
import 'playlist.dart';
|
||||||
import 'importompl.dart';
|
import 'importompl.dart';
|
||||||
import 'audioplayer.dart';
|
import 'audioplayer.dart';
|
||||||
@ -473,7 +474,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
snapshot.data.length == _top) _loadMoreEpisode();
|
snapshot.data.length == _top) _loadMoreEpisode();
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
child: CustomScrollView(
|
child: Selector<SubscribeWorker, bool>(
|
||||||
|
selector: (_, worker) => worker.created,
|
||||||
|
builder: (context, created, child) {
|
||||||
|
return CustomScrollView(
|
||||||
key: PageStorageKey<String>('update'),
|
key: PageStorageKey<String>('update'),
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
slivers: <Widget>[
|
slivers: <Widget>[
|
||||||
@ -484,12 +488,14 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Consumer<GroupList>(
|
Consumer<GroupList>(
|
||||||
builder: (context, groupList, child) =>
|
builder:
|
||||||
|
(context, groupList, child) =>
|
||||||
Material(
|
Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: PopupMenuButton<String>(
|
child: PopupMenuButton<String>(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius:
|
||||||
|
BorderRadius.all(
|
||||||
Radius.circular(10))),
|
Radius.circular(10))),
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
tooltip: 'Groups fliter',
|
tooltip: 'Groups fliter',
|
||||||
@ -498,12 +504,13 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
horizontal: 20),
|
horizontal: 20),
|
||||||
height: 50,
|
height: 50,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize:
|
||||||
|
MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(_groupName),
|
Text(_groupName),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: EdgeInsets
|
||||||
EdgeInsets.symmetric(
|
.symmetric(
|
||||||
horizontal: 5),
|
horizontal: 5),
|
||||||
),
|
),
|
||||||
Icon(
|
Icon(
|
||||||
@ -529,11 +536,13 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
_group = ['All'];
|
_group = ['All'];
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
groupList.groups.forEach((group) {
|
groupList.groups
|
||||||
|
.forEach((group) {
|
||||||
if (group.name == value) {
|
if (group.name == value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_groupName = value;
|
_groupName = value;
|
||||||
_group = group.podcastList;
|
_group =
|
||||||
|
group.podcastList;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -572,12 +581,14 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
_group);
|
_group);
|
||||||
if (mounted)
|
if (mounted)
|
||||||
setState(() {});
|
setState(() {});
|
||||||
Fluttertoast.showToast(
|
Fluttertoast
|
||||||
|
.showToast(
|
||||||
msg: _groupName ==
|
msg: _groupName ==
|
||||||
'All'
|
'All'
|
||||||
? '${snapshot.data} episode added to playlist'
|
? '${snapshot.data} episode added to playlist'
|
||||||
: '${snapshot.data} episode in $_groupName added to playlist',
|
: '${snapshot.data} episode in $_groupName added to playlist',
|
||||||
gravity: ToastGravity
|
gravity:
|
||||||
|
ToastGravity
|
||||||
.BOTTOM,
|
.BOTTOM,
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
@ -630,8 +641,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
child: CustomPaint(
|
child: CustomPaint(
|
||||||
painter: LayoutPainter(
|
painter: LayoutPainter(
|
||||||
0,
|
0,
|
||||||
context.textTheme
|
context
|
||||||
.bodyText1.color),
|
.textTheme
|
||||||
|
.bodyText1
|
||||||
|
.color),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: SizedBox(
|
: SizedBox(
|
||||||
@ -640,8 +653,10 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
child: CustomPaint(
|
child: CustomPaint(
|
||||||
painter: LayoutPainter(
|
painter: LayoutPainter(
|
||||||
1,
|
1,
|
||||||
context.textTheme
|
context
|
||||||
.bodyText1.color),
|
.textTheme
|
||||||
|
.bodyText1
|
||||||
|
.color),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
@ -664,8 +679,9 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
childCount: 1,
|
childCount: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]),
|
]);
|
||||||
)
|
},
|
||||||
|
))
|
||||||
: Center();
|
: Center();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -36,6 +36,7 @@ class SubscribeWorker extends ChangeNotifier {
|
|||||||
SubscribeItem _subscribeItem;
|
SubscribeItem _subscribeItem;
|
||||||
SubscribeItem _currentSubscribeItem = SubscribeItem('', '');
|
SubscribeItem _currentSubscribeItem = SubscribeItem('', '');
|
||||||
bool _created = false;
|
bool _created = false;
|
||||||
|
bool get created => _created;
|
||||||
|
|
||||||
setSubscribeItem(SubscribeItem item) async {
|
setSubscribeItem(SubscribeItem item) async {
|
||||||
_subscribeItem = item;
|
_subscribeItem = item;
|
||||||
@ -71,6 +72,7 @@ class SubscribeWorker extends ChangeNotifier {
|
|||||||
subIsolate = null;
|
subIsolate = null;
|
||||||
_currentSubscribeItem = SubscribeItem('', '');
|
_currentSubscribeItem = SubscribeItem('', '');
|
||||||
_created = false;
|
_created = false;
|
||||||
|
notifyListeners();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ class EpisodeGrid extends StatelessWidget {
|
|||||||
: episodes[index].primaryColor.colorizeLight();
|
: episodes[index].primaryColor.colorizeLight();
|
||||||
return FadeTransition(
|
return FadeTransition(
|
||||||
opacity: Tween<double>(
|
opacity: Tween<double>(
|
||||||
begin: 0,
|
begin: index < 12 ? 0 : 1,
|
||||||
end: 1,
|
end: 1,
|
||||||
).animate(animation),
|
).animate(animation),
|
||||||
child: Selector<AudioPlayerNotifier,
|
child: Selector<AudioPlayerNotifier,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user