mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: horizontal settings page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -2,14 +2,19 @@ import 'package:PiliPlus/pages/setting/widgets/model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ExtraSetting extends StatelessWidget {
|
||||
const ExtraSetting({super.key});
|
||||
const ExtraSetting({super.key, this.showAppBar});
|
||||
|
||||
final bool? showAppBar;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('其它设置')),
|
||||
appBar: showAppBar == false ? null : AppBar(title: Text('其它设置')),
|
||||
body: ListView(
|
||||
children: extraSettings.map((item) => item.widget).toList(),
|
||||
children: [
|
||||
...extraSettings.map((item) => item.widget),
|
||||
SizedBox(height: MediaQuery.paddingOf(context).bottom + 80),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user