Files
PiliPlus/lib/pages/setting/video_setting.dart
bggRGjQaUbCoE 76f1d0129b opt ui
Closes #1050

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-08-20 23:28:57 +08:00

32 lines
845 B
Dart

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