mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 22:05:53 +08:00
mod: debug logout
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:PiliPlus/build_config.dart';
|
||||||
import 'package:PiliPlus/pages/about/index.dart';
|
import 'package:PiliPlus/pages/about/index.dart';
|
||||||
import 'package:PiliPlus/pages/setting/extra_setting.dart';
|
import 'package:PiliPlus/pages/setting/extra_setting.dart';
|
||||||
import 'package:PiliPlus/pages/setting/play_setting.dart';
|
import 'package:PiliPlus/pages/setting/play_setting.dart';
|
||||||
@@ -203,15 +204,20 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// TextButton(
|
if (BuildConfig.isDebug)
|
||||||
// onPressed: () async {
|
TextButton(
|
||||||
// await LoginUtils.onLogout();
|
onPressed: () {
|
||||||
// _isLogin.value = false;
|
Get.back();
|
||||||
// SmartDialog.dismiss();
|
_isLogin.value = false;
|
||||||
// Get.back();
|
LoginUtils.onLogout();
|
||||||
// },
|
},
|
||||||
// child: const Text('仅登出'),
|
child: Text(
|
||||||
// ),
|
'仅登出',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Theme.of(context).colorScheme.error,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
SmartDialog.showLoading();
|
SmartDialog.showLoading();
|
||||||
|
|||||||
Reference in New Issue
Block a user