v2.42.3 — MEDIUM: Dead Code entfernt
- download_screen.dart: Unbenutztes Feld _speichertInDownloads entfernt - home_screen.dart: Unbenutzte Methode _zeigePlaylistSheet entfernt - home_screen.dart: Unbenutzten Import playlist_sheet.dart entfernt - melo_logger.dart: Unnötigen Import material.dart entfernt
This commit is contained in:
@@ -107,7 +107,6 @@ class _DownloadScreenState extends State<DownloadScreen> with WidgetsBindingObse
|
||||
_previewSid = null;
|
||||
await _previewPlayer.stop();
|
||||
}
|
||||
bool _speichertInDownloads = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -126,7 +125,6 @@ class _DownloadScreenState extends State<DownloadScreen> with WidgetsBindingObse
|
||||
final pfad = '${dir.path}/Melo';
|
||||
widget.downloader.setzeSpeicherPfad(pfad);
|
||||
setState(() {
|
||||
_speichertInDownloads = true;
|
||||
_speicherOrt = '⬇ Downloads/Melo';
|
||||
});
|
||||
}
|
||||
@@ -167,7 +165,6 @@ class _DownloadScreenState extends State<DownloadScreen> with WidgetsBindingObse
|
||||
await prefs.setBool('download_in_downloads', true);
|
||||
widget.downloader.setzeSpeicherPfad(pfad);
|
||||
setState(() {
|
||||
_speichertInDownloads = true;
|
||||
_speicherOrt = '⬇ Downloads/Melo';
|
||||
});
|
||||
}
|
||||
@@ -178,7 +175,6 @@ class _DownloadScreenState extends State<DownloadScreen> with WidgetsBindingObse
|
||||
await prefs.setBool('download_in_downloads', false);
|
||||
widget.downloader.setzeSpeicherPfad(pfad);
|
||||
setState(() {
|
||||
_speichertInDownloads = false;
|
||||
_speicherOrt = '💾 ${dirs.first.path.split('/').last}/Melo';
|
||||
});
|
||||
} else {
|
||||
@@ -188,7 +184,6 @@ class _DownloadScreenState extends State<DownloadScreen> with WidgetsBindingObse
|
||||
await prefs.setBool('download_in_downloads', false);
|
||||
widget.downloader.setzeSpeicherPfad('');
|
||||
setState(() {
|
||||
_speichertInDownloads = false;
|
||||
_speicherOrt = '📁 App-intern (Music/)';
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ import '../widgets/melo_header.dart';
|
||||
import '../widgets/statistik_card.dart';
|
||||
import '../widgets/tag_leiste.dart';
|
||||
import '../widgets/song_tile.dart';
|
||||
import '../widgets/playlist_sheet.dart';
|
||||
import 'download_screen.dart';
|
||||
import 'cloud_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
@@ -219,18 +218,6 @@ class _MeloHomeState extends State<MeloHome> {
|
||||
);
|
||||
}
|
||||
|
||||
void _zeigePlaylistSheet() {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
backgroundColor: MeloTheme.schwarz,
|
||||
isScrollControlled: true,
|
||||
builder: (_) => SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.7,
|
||||
child: PlaylistSheet(vm: _vm),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _zeigeAddToPlaylist(Song song) async {
|
||||
final playlists = await _vm.playlists.allePlaylists();
|
||||
if (!mounted || playlists.isEmpty) {
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import '../config/app_config.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user