Merge branch 'design' into alpha

This commit is contained in:
guozhigq
2023-09-07 19:25:49 +08:00
7 changed files with 47 additions and 31 deletions

View File

@ -49,7 +49,7 @@ class RcmdController extends GetxController {
videoList.value = res['data'];
}
} else if (type == 'onRefresh') {
videoList.insertAll(0, res['data']);
videoList.value = res['data'];
} else if (type == 'onLoad') {
videoList.addAll(res['data']);
}

View File

@ -77,7 +77,8 @@ class _RcmdPageState extends State<RcmdPage>
),
child: RefreshIndicator(
onRefresh: () async {
return await _rcmdController.onRefresh();
await _rcmdController.onRefresh();
await Future.delayed(const Duration(milliseconds: 300));
},
child: CustomScrollView(
controller: _rcmdController.scrollController,

View File

@ -60,6 +60,12 @@ class _PlaySettingState extends State<PlaySetting> {
setKey: SettingBoxKey.autoPlayEnable,
defaultVal: true,
),
const SetSwitchItem(
title: '后台播放',
subTitle: '进入后台时继续播放',
setKey: SettingBoxKey.enableBackgroundPlay,
defaultVal: false,
),
const SetSwitchItem(
title: '自动全屏',
subTitle: '视频开始播放时进入全屏',