Spotify playlist import
This commit is contained in:
parent
2bd4646796
commit
439906ecbc
4 changed files with 441 additions and 3 deletions
|
|
@ -8,11 +8,12 @@ import 'package:freezer/settings.dart';
|
|||
import 'package:freezer/ui/details_screens.dart';
|
||||
import 'package:freezer/ui/downloads_screen.dart';
|
||||
import 'package:freezer/ui/error.dart';
|
||||
import 'package:freezer/ui/importer_screen.dart';
|
||||
import 'package:freezer/ui/tiles.dart';
|
||||
|
||||
import 'menu.dart';
|
||||
import 'settings_screen.dart';
|
||||
import 'player_bar.dart';
|
||||
import '../api/spotify.dart';
|
||||
import '../api/download.dart';
|
||||
|
||||
class LibraryAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
|
|
@ -107,6 +108,25 @@ class LibraryScreen extends StatelessWidget {
|
|||
);
|
||||
},
|
||||
),
|
||||
Divider(),
|
||||
ListTile(
|
||||
title: Text('Import'),
|
||||
leading: Icon(Icons.import_export),
|
||||
subtitle: Text('Import playlists from Spotify'),
|
||||
onTap: () {
|
||||
if (spotify.doneImporting != null) {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (context) => CurrentlyImportingScreen())
|
||||
);
|
||||
if (spotify.doneImporting) spotify.doneImporting = null;
|
||||
return;
|
||||
}
|
||||
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (context) => ImporterScreen())
|
||||
);
|
||||
},
|
||||
),
|
||||
ExpansionTile(
|
||||
title: Text('Statistics'),
|
||||
leading: Icon(Icons.insert_chart),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue