Remove unused statements.

This commit is contained in:
Stonegate 2021-01-02 16:47:05 +08:00
parent 2e14835bd9
commit 48b1d88fc9
6 changed files with 2 additions and 6 deletions

View File

@ -610,7 +610,6 @@ class __PlaylistsState extends State<_Playlists> {
@override
Widget build(BuildContext context) {
final s = context.s;
return Selector<AudioPlayerNotifier, List<Playlist>>(
selector: (_, audio) => audio.playlists,
builder: (_, data, __) {

View File

@ -29,7 +29,6 @@ class _PlaylistDetailState extends State<PlaylistDetail> {
@override
Widget build(BuildContext context) {
final s = context.s;
return Scaffold(
appBar: AppBar(
leading: IconButton(

View File

@ -195,7 +195,7 @@ class _PodcastManageState extends State<PodcastManage>
),
body: WillPopScope(
onWillPop: () async {
await context.read<GroupList>().clearOrderChanged();
context.read<GroupList>().clearOrderChanged();
return true;
},
child: Consumer<GroupList>(

View File

@ -1038,7 +1038,6 @@ class __GpodderInfoState extends State<_GpodderInfo> {
@override
Widget build(BuildContext context) {
final s = context.s;
return AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.dark,

View File

@ -434,7 +434,7 @@ class GroupList extends ChangeNotifier {
}
_groups = [
for (var group in _groups)
if (group.id != podcastGroup) group
if (group.id != podcastGroup.id) group
];
notifyListeners();
await _saveGroup();

View File

@ -29,7 +29,6 @@ class _DismissibleContainerState extends State<DismissibleContainer> {
@override
Widget build(BuildContext context) {
final s = context.s;
final c = widget.episode.backgroudColor(context);
return AnimatedContainer(
duration: Duration(milliseconds: 300),
curve: Curves.easeInSine,