feat: 充值/提现页面改为独立全屏页面,优化Toast提示

This commit is contained in:
2026-04-07 04:24:39 +08:00
parent 7fc4dc71cb
commit 020a2bf352
92 changed files with 61289 additions and 59813 deletions

View File

@@ -238,7 +238,7 @@ class _WelfareCenterPageState extends State<WelfareCenterPage> {
? null
: () {
Clipboard.setData(ClipboardData(text: referralCode));
ToastUtils.show('邀請碼已複製');
ToastUtils.showSuccess('邀請碼已複製');
},
style: ElevatedButton.styleFrom(
backgroundColor: goldAccent,
@@ -860,13 +860,13 @@ class _WelfareCenterPageState extends State<WelfareCenterPage> {
if (response.success) {
context.read<AssetProvider>().refreshAll(force: true);
context.read<AppEventBus>().fire(AppEventType.assetChanged);
ToastUtils.show('領取成功100 USDT 已到賬');
ToastUtils.showSuccess('領取成功100 USDT 已到賬');
_loadData();
} else {
ToastUtils.show(response.message ?? '領取失敗');
ToastUtils.showError(response.message ?? '領取失敗');
}
} catch (e) {
ToastUtils.show('領取失敗: $e');
ToastUtils.showError('領取失敗: $e');
}
}
@@ -882,13 +882,13 @@ class _WelfareCenterPageState extends State<WelfareCenterPage> {
if (response.success) {
context.read<AssetProvider>().refreshAll(force: true);
context.read<AppEventBus>().fire(AppEventType.assetChanged);
ToastUtils.show('領取成功100 USDT 已到賬');
ToastUtils.showSuccess('領取成功100 USDT 已到賬');
_loadData();
} else {
ToastUtils.show(response.message ?? '領取失敗');
ToastUtils.showError(response.message ?? '領取失敗');
}
} catch (e) {
ToastUtils.show('領取失敗: $e');
ToastUtils.showError('領取失敗: $e');
}
}
@@ -909,13 +909,13 @@ class _WelfareCenterPageState extends State<WelfareCenterPage> {
if (response.success) {
context.read<AssetProvider>().refreshAll(force: true);
context.read<AppEventBus>().fire(AppEventType.assetChanged);
ToastUtils.show('領取成功50 USDT 已到賬');
ToastUtils.showSuccess('領取成功50 USDT 已到賬');
_loadData();
} else {
ToastUtils.show(response.message ?? '領取失敗');
ToastUtils.showError(response.message ?? '領取失敗');
}
} catch (e) {
ToastUtils.show('領取失敗: $e');
ToastUtils.showError('領取失敗: $e');
}
}
}