Merge branch 'design'
This commit is contained in:
@ -266,6 +266,14 @@ class VideoContent extends StatelessWidget {
|
|||||||
fs: 9,
|
fs: 9,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
if (videoItem.isFollowed == 1) ...[
|
||||||
|
const PBadge(
|
||||||
|
text: '已关注',
|
||||||
|
stack: 'normal',
|
||||||
|
size: 'small',
|
||||||
|
type: 'color',
|
||||||
|
)
|
||||||
|
],
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: crossAxisCount == 1 ? 0 : 1,
|
flex: crossAxisCount == 1 ? 0 : 1,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
@ -95,6 +97,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
setKey: SettingBoxKey.enableBackgroundPlay,
|
setKey: SettingBoxKey.enableBackgroundPlay,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
|
if (Platform.isAndroid)
|
||||||
const SetSwitchItem(
|
const SetSwitchItem(
|
||||||
title: '自动PiP播放',
|
title: '自动PiP播放',
|
||||||
subTitle: '进入后台时画中画播放',
|
subTitle: '进入后台时画中画播放',
|
||||||
@ -154,7 +157,10 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
int? result = await showDialog(
|
int? result = await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SelectDialog<int>(title: '默认画质', value: defaultVideoQa, values: VideoQuality.values.reversed.map((e) {
|
return SelectDialog<int>(
|
||||||
|
title: '默认画质',
|
||||||
|
value: defaultVideoQa,
|
||||||
|
values: VideoQuality.values.reversed.map((e) {
|
||||||
return {'title': e.description, 'value': e.code};
|
return {'title': e.description, 'value': e.code};
|
||||||
}).toList());
|
}).toList());
|
||||||
},
|
},
|
||||||
@ -177,7 +183,10 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
int? result = await showDialog(
|
int? result = await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SelectDialog<int>(title: '默认音质', value: defaultAudioQa, values: AudioQuality.values.reversed.map((e) {
|
return SelectDialog<int>(
|
||||||
|
title: '默认音质',
|
||||||
|
value: defaultAudioQa,
|
||||||
|
values: AudioQuality.values.reversed.map((e) {
|
||||||
return {'title': e.description, 'value': e.code};
|
return {'title': e.description, 'value': e.code};
|
||||||
}).toList());
|
}).toList());
|
||||||
},
|
},
|
||||||
@ -200,7 +209,10 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
String? result = await showDialog(
|
String? result = await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SelectDialog<String>(title: '默认解码格式', value: defaultDecode, values: VideoDecodeFormats.values.map((e) {
|
return SelectDialog<String>(
|
||||||
|
title: '默认解码格式',
|
||||||
|
value: defaultDecode,
|
||||||
|
values: VideoDecodeFormats.values.map((e) {
|
||||||
return {'title': e.description, 'value': e.code};
|
return {'title': e.description, 'value': e.code};
|
||||||
}).toList());
|
}).toList());
|
||||||
},
|
},
|
||||||
@ -223,7 +235,10 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
int? result = await showDialog(
|
int? result = await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SelectDialog<int>(title: '默认全屏方式', value: defaultFullScreenMode, values: FullScreenMode.values.map((e) {
|
return SelectDialog<int>(
|
||||||
|
title: '默认全屏方式',
|
||||||
|
value: defaultFullScreenMode,
|
||||||
|
values: FullScreenMode.values.map((e) {
|
||||||
return {'title': e.description, 'value': e.code};
|
return {'title': e.description, 'value': e.code};
|
||||||
}).toList());
|
}).toList());
|
||||||
},
|
},
|
||||||
@ -246,7 +261,10 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
int? result = await showDialog(
|
int? result = await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SelectDialog<int>(title: '底部进度条展示', value: defaultBtmProgressBehavior, values: BtmProgresBehavior.values.map((e) {
|
return SelectDialog<int>(
|
||||||
|
title: '底部进度条展示',
|
||||||
|
value: defaultBtmProgressBehavior,
|
||||||
|
values: BtmProgresBehavior.values.map((e) {
|
||||||
return {'title': e.description, 'value': e.code};
|
return {'title': e.description, 'value': e.code};
|
||||||
}).toList());
|
}).toList());
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user