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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final s = context.s;
return Selector<AudioPlayerNotifier, List<Playlist>>( return Selector<AudioPlayerNotifier, List<Playlist>>(
selector: (_, audio) => audio.playlists, selector: (_, audio) => audio.playlists,
builder: (_, data, __) { builder: (_, data, __) {

View File

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

View File

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

View File

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

View File

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

View File

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