From 8dded511272ddd4abdb3fa6cf848fb9871376f00 Mon Sep 17 00:00:00 2001 From: orz12 Date: Thu, 25 Jan 2024 10:09:20 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E5=AE=8C=E5=96=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/introduction/view.dart | 16 +++++++++++++++- lib/pages/webview/controller.dart | 4 +++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index 0a3ac934b..ea72d3231 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; import 'package:pilipala/common/constants.dart'; import 'package:pilipala/common/widgets/http_error.dart'; +import 'package:pilipala/pages/mine/controller.dart'; import 'package:pilipala/pages/video/detail/index.dart'; import 'package:pilipala/common/widgets/network_img_layer.dart'; import 'package:pilipala/common/widgets/stat/danmu.dart'; @@ -285,7 +286,7 @@ class _VideoInfoState extends State with TickerProviderStateMixin { child: Padding( padding: const EdgeInsets.only(top: 7, bottom: 6), child: Row( - children: [ + children: [ StatView( theme: 'gray', view: !loadingStatus @@ -313,6 +314,19 @@ class _VideoInfoState extends State with TickerProviderStateMixin { color: t.colorScheme.outline, ), ), + if (MineController.anonymity) ...[ + const SizedBox(width: 10), + Icon( + Icons.visibility_off_outlined, + size: 15, + color: t.colorScheme.outline, + ), + const SizedBox(width: 2), + Text( + '无痕模式', + style: TextStyle(fontSize: 12,color: t.colorScheme.outline), + ), + ], const SizedBox(width: 10), if (videoIntroController.isShowOnlineTotal) Obx( diff --git a/lib/pages/webview/controller.dart b/lib/pages/webview/controller.dart index 37600ea76..c01f7352d 100644 --- a/lib/pages/webview/controller.dart +++ b/lib/pages/webview/controller.dart @@ -103,7 +103,9 @@ class WebviewController extends GetxController { await SetCookie.onSet(); final result = await UserHttp.userInfo(); if (result['status'] && result['data'].isLogin) { - SmartDialog.showToast('登录成功'); + SmartDialog.showToast('登录成功,当前采用「' + '${GStrorage.setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'web')}' + '端」推荐'); try { Box userInfoCache = GStrorage.userInfo; await userInfoCache.put('userInfoCache', result['data']);