mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
16 lines
413 B
Dart
16 lines
413 B
Dart
enum UpPanelPosition {
|
|
leftFixed,
|
|
rightFixed,
|
|
leftDrawer,
|
|
rightDrawer,
|
|
}
|
|
|
|
extension UpPanelPositionDesc on UpPanelPosition {
|
|
String get values => ['left_fixed', 'right_fixed', 'left_drawer', 'right_drawer'][index];
|
|
String get labels => ['左侧常驻','右侧常驻','左侧抽屉','右侧抽屉'][index];
|
|
}
|
|
|
|
extension UpPanelPositionCode on UpPanelPosition {
|
|
int get code => [0, 1, 2, 3][index];
|
|
}
|