mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 折叠屏内屏(展开状态)竖屏全屏适配
This commit is contained in:
@@ -5,15 +5,17 @@ enum FullScreenMode {
|
||||
// 始终竖屏
|
||||
vertical,
|
||||
// 始终横屏
|
||||
horizontal
|
||||
horizontal,
|
||||
// 屏幕长宽比<1.25或为竖屏视频时竖屏,否则横屏
|
||||
ratio,
|
||||
}
|
||||
|
||||
extension FullScreenModeDesc on FullScreenMode {
|
||||
String get description => ['自适应', '始终竖屏', '始终横屏'][index];
|
||||
String get description => ['按视频方向(默认)', '强制竖屏', '强制横屏', '屏幕长宽比<1.25或为竖屏视频时竖屏,否则横屏'][index];
|
||||
}
|
||||
|
||||
extension FullScreenModeCode on FullScreenMode {
|
||||
static final List<int> _codeList = [0, 1, 2];
|
||||
static final List<int> _codeList = [0, 1, 2, 3];
|
||||
int get code => _codeList[index];
|
||||
|
||||
static FullScreenMode? fromCode(int code) {
|
||||
|
||||
Reference in New Issue
Block a user