Add debug page.

This commit is contained in:
2025-04-05 20:29:30 +08:00
parent c096f5a2d8
commit 6eb0060dd6
3 changed files with 100 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ part 'local_favorites.dart';
part 'app.dart';
part 'about.dart';
part 'network.dart';
part 'debug.dart';
class SettingsPage extends StatefulWidget {
const SettingsPage({this.initialPage = -1, super.key});
@@ -55,6 +56,7 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
"APP",
"Network",
"About",
"Debug"
];
final icons = <IconData>[
@@ -64,7 +66,8 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
Icons.collections_bookmark_rounded,
Icons.apps,
Icons.public,
Icons.info
Icons.info,
Icons.bug_report,
];
double offset = 0;
@@ -350,6 +353,7 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
4 => const AppSettings(),
5 => const NetworkSettings(),
6 => const AboutSettings(),
7 => const DebugPage(),
_ => throw UnimplementedError()
};
}