first commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
import '../components/DownloadsScreen/downloads_overview.dart';
|
||||
import '../components/DownloadsScreen/downloaded_albums_list.dart';
|
||||
import '../components/DownloadsScreen/download_error_screen_button.dart';
|
||||
import '../components/DownloadsScreen/download_missing_images_button.dart';
|
||||
import '../components/DownloadsScreen/sync_downloaded_playlists.dart';
|
||||
|
||||
class DownloadsScreen extends StatelessWidget {
|
||||
const DownloadsScreen({Key? key}) : super(key: key);
|
||||
|
||||
static const routeName = "/downloads";
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(AppLocalizations.of(context)!.downloads),
|
||||
actions: [
|
||||
SyncDownloadedAlbumsOrPlaylistsButton(),
|
||||
const DownloadMissingImagesButton(),
|
||||
const DownloadErrorScreenButton()
|
||||
],
|
||||
),
|
||||
body: Scrollbar(
|
||||
child: CustomScrollView(
|
||||
slivers: [
|
||||
SliverList(
|
||||
delegate: SliverChildListDelegate([
|
||||
const Padding(
|
||||
// We don't have bottom padding here since the divider already provides bottom padding
|
||||
padding: EdgeInsets.fromLTRB(8, 8, 8, 0),
|
||||
child: DownloadsOverview(),
|
||||
),
|
||||
const Divider(),
|
||||
]),
|
||||
),
|
||||
const DownloadedAlbumsList(),
|
||||
// CurrentDownloadsList(),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user