Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-30 14:50:54 +08:00
parent 80fa0240e9
commit 8d94c0405f
115 changed files with 3150 additions and 1438 deletions

View File

@@ -2,9 +2,9 @@ import 'package:PiliPlus/pages/setting/models/video_settings.dart';
import 'package:flutter/material.dart';
class VideoSetting extends StatefulWidget {
const VideoSetting({super.key, this.showAppBar});
const VideoSetting({super.key, this.showAppBar = true});
final bool? showAppBar;
final bool showAppBar;
@override
State<VideoSetting> createState() => _VideoSettingState();
@@ -15,14 +15,16 @@ class _VideoSettingState extends State<VideoSetting> {
@override
Widget build(BuildContext context) {
final showAppBar = widget.showAppBar;
final padding = MediaQuery.viewPaddingOf(context);
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: widget.showAppBar == false
? null
: AppBar(title: const Text('音视频设置')),
appBar: showAppBar ? AppBar(title: const Text('音视频设置')) : null,
body: ListView(
padding: EdgeInsets.only(
bottom: MediaQuery.viewPaddingOf(context).bottom + 100,
left: showAppBar ? padding.left : 0,
right: showAppBar ? padding.right : 0,
bottom: padding.bottom + 100,
),
children: settings.map((item) => item.widget).toList(),
),