top up panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-15 18:48:31 +08:00
parent e54a0f127f
commit 35bc4a6ece
5 changed files with 115 additions and 85 deletions

View File

@@ -1,10 +1,10 @@
enum UpPanelPosition {
leftFixed,
rightFixed,
leftDrawer,
rightDrawer,
}
top('顶部'),
leftFixed('左侧常驻'),
rightFixed('右侧常驻'),
leftDrawer('左侧抽屉'),
rightDrawer('右侧抽屉');
extension UpPanelPositionExt on UpPanelPosition {
String get labels => const ['左侧常驻', '右侧常驻', '左侧抽屉', '右侧抽屉'][index];
final String label;
const UpPanelPosition(this.label);
}