feat: 充值/提现页面改为独立全屏页面,优化Toast提示
This commit is contained in:
@@ -13,7 +13,8 @@ import '../../../providers/asset_provider.dart';
|
||||
import '../../components/glass_panel.dart';
|
||||
import '../mine/welfare_center_page.dart';
|
||||
import '../asset/transfer_page.dart';
|
||||
import '../asset/components/asset_dialogs.dart';
|
||||
import '../asset/deposit_page.dart';
|
||||
import '../asset/withdraw_page.dart';
|
||||
import '../../components/coin_icon.dart';
|
||||
import 'header_bar.dart';
|
||||
import 'quick_actions_row.dart';
|
||||
@@ -145,12 +146,18 @@ class _HomePageState extends State<HomePage>
|
||||
}
|
||||
|
||||
void _showDeposit() {
|
||||
showDepositDialog(context);
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const DepositPage()),
|
||||
);
|
||||
}
|
||||
|
||||
void _showWithdraw() {
|
||||
final balance = context.read<AssetProvider>().fundAccount?.balance ?? '0.00';
|
||||
showWithdrawDialog(context, balance);
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => WithdrawPage(balance: balance)),
|
||||
);
|
||||
}
|
||||
|
||||
void _navigateToTransfer() {
|
||||
|
||||
Reference in New Issue
Block a user