fix(app): 移除设置页调试服务器地址

This commit is contained in:
Zhou Weidong committed 2026-10-19 23:51:15 +08:00
1 parent 2b95c79931
commit 061aac6577
6 files changed
+25 -273

No files matched your search

+2 -11
View File
@@ -2,7 +2,6 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
@@ -49,7 +48,6 @@ class MyPage extends StatefulWidget {
this.dramas,
this.onDramaSelected,
this.wallet,
this.debugShowSetting = kDebugMode,
});
final Drama drama;
@@ -67,7 +65,6 @@ class MyPage extends StatefulWidget {
final List<Drama>? dramas;
final ValueChanged<Drama>? onDramaSelected;
final WalletController? wallet;
final bool debugShowSetting;
@override
State<MyPage> createState() => _MyPageState();
@@ -759,10 +756,7 @@ class _MyPageState extends State<MyPage> {
};
return InkWell(
key: const Key('mine-language'),
onTap: () => logic.showLanguage(
context,
showServerSetting: widget.debugShowSetting,
),
onTap: () => logic.showLanguage(context),
borderRadius: BorderRadius.circular(12),
child: Container(
padding: const EdgeInsets.all(12),
@@ -844,10 +838,7 @@ class _MyPageState extends State<MyPage> {
_menuTile(
icon: Icons.settings_rounded,
title: l10n.settings,
onTap: () => logic.showLanguage(
context,
showServerSetting: widget.debugShowSetting,
),
onTap: () => logic.showLanguage(context),
),
],
),