mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
34 lines
982 B
Dart
34 lines
982 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 = true});
|
|
|
|
final bool showAppBar;
|
|
|
|
@override
|
|
State<VideoSetting> createState() => _VideoSettingState();
|
|
}
|
|
|
|
class _VideoSettingState extends State<VideoSetting> {
|
|
final settings = videoSettings;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final showAppBar = widget.showAppBar;
|
|
final padding = MediaQuery.viewPaddingOf(context);
|
|
return Scaffold(
|
|
resizeToAvoidBottomInset: false,
|
|
appBar: showAppBar ? AppBar(title: const Text('音视频设置')) : null,
|
|
body: ListView(
|
|
padding: EdgeInsets.only(
|
|
left: showAppBar ? padding.left : 0,
|
|
right: showAppBar ? padding.right : 0,
|
|
bottom: padding.bottom + 100,
|
|
),
|
|
children: settings.map((item) => item.widget).toList(),
|
|
),
|
|
);
|
|
}
|
|
}
|