66 lines
1.8 KiB
Dart
66 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theming.dart';
|
|
import '../widgets/highlight.dart';
|
|
import '../widgets/shuffle_all_button.dart';
|
|
import '../widgets/smart_lists.dart';
|
|
import 'settings_page.dart';
|
|
|
|
class HomePage extends StatefulWidget {
|
|
const HomePage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
_HomePageState createState() => _HomePageState();
|
|
}
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
print('HomePage.build');
|
|
return SafeArea(
|
|
child: Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text(
|
|
'Home',
|
|
style: TEXT_HEADER,
|
|
),
|
|
actions: [
|
|
IconButton(
|
|
icon: const Icon(Icons.more_vert),
|
|
onPressed: () {
|
|
Navigator.of(context).push(
|
|
MaterialPageRoute(
|
|
builder: (BuildContext context) => const SettingsPage(),
|
|
),
|
|
);
|
|
},
|
|
)
|
|
],
|
|
),
|
|
body: Scrollbar(
|
|
child: CustomScrollView(
|
|
slivers: [
|
|
SliverList(
|
|
delegate: SliverChildListDelegate([
|
|
const SizedBox(height: 12.0),
|
|
const Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: HORIZONTAL_PADDING),
|
|
child: Highlight(),
|
|
),
|
|
const Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: HORIZONTAL_PADDING),
|
|
child: ShuffleAllButton(
|
|
verticalPad: 20.0,
|
|
horizontalPad: 0.0,
|
|
),
|
|
),
|
|
]),
|
|
),
|
|
const SmartLists(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|