mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
32 lines
842 B
Dart
32 lines
842 B
Dart
import 'package:PiliPlus/pages/setting/models/style_settings.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class StyleSetting extends StatefulWidget {
|
|
const StyleSetting({super.key, this.showAppBar});
|
|
|
|
final bool? showAppBar;
|
|
|
|
@override
|
|
State<StyleSetting> createState() => _StyleSettingState();
|
|
}
|
|
|
|
class _StyleSettingState extends State<StyleSetting> {
|
|
final settings = styleSettings;
|
|
|
|
@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(),
|
|
),
|
|
);
|
|
}
|
|
}
|