This commit is contained in:
sion
2026-04-18 10:02:47 +08:00
parent a487302946
commit 0066615054
5256 changed files with 262726 additions and 224532 deletions

View File

@@ -9,7 +9,8 @@ import '../../../../core/theme/app_color_scheme.dart';
import '../../../../core/theme/app_spacing.dart';
import '../../../../core/utils/toast_utils.dart';
import '../../../../providers/asset_provider.dart';
import '../../../components/glass_panel.dart';
import '../../../components/neon_glow.dart';
import '../../../shared/ui_constants.dart';
// ============================================
@@ -134,13 +135,10 @@ void showDepositDialog(BuildContext context) {
showDialog(
context: context,
builder: (ctx) => Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadius.xl),
),
backgroundColor: colorScheme.surfaceContainer,
child: Container(
backgroundColor: Colors.transparent,
child: GlassPanel(
borderRadius: BorderRadius.circular(AppRadius.lg),
padding: const EdgeInsets.all(AppSpacing.lg),
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -200,17 +198,19 @@ void showDepositDialog(BuildContext context) {
Row(
children: [
Expanded(
child: TextButton(
child: NeonButton(
text: '取消',
type: NeonButtonType.outline,
onPressed: () => Navigator.of(ctx).pop(),
style: TextButton.styleFrom(
minimumSize: const Size.fromHeight(48),
),
child: const Text('取消'),
height: 48,
showGlow: false,
),
),
const SizedBox(width: AppSpacing.sm),
Expanded(
child: FilledButton(
child: NeonButton(
text: '下一步',
type: NeonButtonType.primary,
onPressed: () async {
if (formKey.currentState!.validate()) {
Navigator.of(ctx).pop();
@@ -226,10 +226,8 @@ void showDepositDialog(BuildContext context) {
}
}
},
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(48),
),
child: const Text('下一步'),
height: 48,
showGlow: true,
),
),
],
@@ -252,21 +250,18 @@ void showDepositResultDialog(BuildContext context, Map<String, dynamic> data) {
showDialog(
context: context,
builder: (ctx) => Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadius.xl),
),
backgroundColor: colorScheme.surfaceContainer,
child: Container(
backgroundColor: Colors.transparent,
child: GlassPanel(
borderRadius: BorderRadius.circular(AppRadius.lg),
padding: const EdgeInsets.all(AppSpacing.lg),
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Icon(
Icons.check_circle,
NeonIcon(
icon: Icons.check_circle,
color: context.appColors.up,
size: 24,
),
@@ -321,17 +316,19 @@ void showDepositResultDialog(BuildContext context, Map<String, dynamic> data) {
Row(
children: [
Expanded(
child: TextButton(
child: NeonButton(
text: '稍後確認',
type: NeonButtonType.outline,
onPressed: () => Navigator.of(ctx).pop(),
style: TextButton.styleFrom(
minimumSize: const Size.fromHeight(44),
),
child: const Text('稍後確認'),
height: 44,
showGlow: false,
),
),
const SizedBox(width: AppSpacing.sm),
Expanded(
child: FilledButton(
child: NeonButton(
text: '已打款',
type: NeonButtonType.primary,
onPressed: () async {
Navigator.of(ctx).pop();
final response = await context.read<AssetProvider>().confirmPay(orderNo);
@@ -343,10 +340,8 @@ void showDepositResultDialog(BuildContext context, Map<String, dynamic> data) {
);
}
},
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(44),
),
child: const Text('已打款'),
height: 44,
showGlow: true,
),
),
],
@@ -391,13 +386,10 @@ void showWithdrawDialog(BuildContext context, String? balance) {
showDialog(
context: context,
builder: (ctx) => Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadius.xl),
),
backgroundColor: colorScheme.surfaceContainer,
child: Container(
backgroundColor: Colors.transparent,
child: GlassPanel(
borderRadius: BorderRadius.circular(AppRadius.lg),
padding: const EdgeInsets.all(AppSpacing.lg),
constraints: const BoxConstraints(maxWidth: 400),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -570,17 +562,19 @@ void showWithdrawDialog(BuildContext context, String? balance) {
Row(
children: [
Expanded(
child: TextButton(
child: NeonButton(
text: '取消',
type: NeonButtonType.outline,
onPressed: () => Navigator.of(ctx).pop(),
style: TextButton.styleFrom(
minimumSize: const Size.fromHeight(44),
),
child: const Text('取消'),
height: 44,
showGlow: false,
),
),
const SizedBox(width: AppSpacing.sm),
Expanded(
child: FilledButton(
child: NeonButton(
text: '提交',
type: NeonButtonType.primary,
onPressed: () async {
if (formKey.currentState!.validate()) {
Navigator.of(ctx).pop();
@@ -601,10 +595,8 @@ void showWithdrawDialog(BuildContext context, String? balance) {
}
}
},
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(44),
),
child: const Text('提交'),
height: 44,
showGlow: true,
),
),
],
@@ -636,13 +628,10 @@ void showResultDialog(BuildContext context, String title, String? message) {
showDialog(
context: context,
builder: (ctx) => Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadius.xl),
),
backgroundColor: colorScheme.surfaceContainer,
child: Container(
backgroundColor: Colors.transparent,
child: GlassPanel(
borderRadius: BorderRadius.circular(AppRadius.lg),
padding: const EdgeInsets.all(AppSpacing.lg),
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -665,12 +654,12 @@ void showResultDialog(BuildContext context, String title, String? message) {
const SizedBox(height: AppSpacing.lg),
SizedBox(
width: double.infinity,
child: FilledButton(
child: NeonButton(
text: '確定',
type: NeonButtonType.primary,
onPressed: () => Navigator.of(ctx).pop(),
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(44),
),
child: const Text('確定'),
height: 44,
showGlow: false,
),
),
],