opt: horizontal settings page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-20 18:40:29 +08:00
parent 2d0ace04ba
commit 39ce3631e7
10 changed files with 308 additions and 154 deletions

View File

@@ -3,7 +3,9 @@ import 'package:flutter/material.dart';
import 'package:PiliPlus/services/service_locator.dart';
class PlaySetting extends StatefulWidget {
const PlaySetting({super.key});
const PlaySetting({super.key, this.showAppBar});
final bool? showAppBar;
@override
State<PlaySetting> createState() => _PlaySettingState();
@@ -21,9 +23,12 @@ class _PlaySettingState extends State<PlaySetting> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('播放器设置')),
appBar: widget.showAppBar == false ? null : AppBar(title: Text('播放器设置')),
body: ListView(
children: playSettings.map((item) => item.widget).toList(),
children: [
...playSettings.map((item) => item.widget),
SizedBox(height: MediaQuery.paddingOf(context).bottom + 80),
],
),
);
}