Skip to content

Commit

Permalink
mod: 完善提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 25, 2024
1 parent 59908e5 commit 8dded51
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 15 additions & 1 deletion lib/pages/video/detail/introduction/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -285,7 +286,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
child: Padding(
padding: const EdgeInsets.only(top: 7, bottom: 6),
child: Row(
children: [
children: <Widget>[
StatView(
theme: 'gray',
view: !loadingStatus
Expand Down Expand Up @@ -313,6 +314,19 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
color: t.colorScheme.outline,
),
),
if (MineController.anonymity) ...<Widget>[
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(
Expand Down
4 changes: 3 additions & 1 deletion lib/pages/webview/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 8dded51

Please sign in to comment.