feat: 充值/提现页面改为独立全屏页面,优化Toast提示
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user