Merge branch 'main' into design

This commit is contained in:
guozhigq
2024-05-16 22:56:01 +08:00
3 changed files with 7 additions and 2 deletions

View File

@ -194,7 +194,8 @@ class _BangumiInfoState extends State<BangumiInfo> {
src: widget.bangumiDetail!.cover!,
),
PBadge(
text: '评分 ${widget.bangumiDetail!.rating!['score']!}',
text:
'评分 ${widget.bangumiDetail?.rating?['score']! ?? '暂无'}',
top: null,
right: 6,
bottom: 6,

View File

@ -153,7 +153,8 @@ class _BottomControlState extends State<BottomControl> {
size: 20,
color: Colors.white,
),
fuc: () => widget.controller!.triggerFullScreen(),
fuc: () => widget.controller!.triggerFullScreen(
status: !(widget.controller!.isFullScreen.value)),
),
],
),

View File

@ -110,6 +110,9 @@ class WebviewController extends GetxController {
SmartDialog.showToast('登录成功');
try {
Box userInfoCache = GStrorage.userInfo;
if (!userInfoCache.isOpen) {
userInfoCache = await Hive.openBox('userInfo');
}
await userInfoCache.put('userInfoCache', result['data']);
final HomeController homeCtr = Get.find<HomeController>();