fix(kyc): 验证成功后点击完成跳转到实名认证页面
使用 context.go() 替代 context.pop(),直接跳转到实名认证页面 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a51fa39a2d
commit
1c62a8cb29
|
|
@ -4,6 +4,7 @@ import 'package:flutter/services.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../../../../routes/route_paths.dart';
|
||||
import 'kyc_entry_page.dart'; // 导入 kycServiceProvider
|
||||
|
||||
/// 更换手机号流程步骤
|
||||
|
|
@ -437,7 +438,8 @@ class _ChangePhonePageState extends ConsumerState<ChangePhonePage> {
|
|||
width: double.infinity,
|
||||
child: OutlinedButton(
|
||||
onPressed: () {
|
||||
context.pop(); // 返回上一页
|
||||
// 直接跳转到实名认证页面,清除中间页面栈
|
||||
context.go(RoutePaths.kycEntry);
|
||||
},
|
||||
style: OutlinedButton.styleFrom(
|
||||
padding: EdgeInsets.symmetric(vertical: 16.h),
|
||||
|
|
|
|||
Loading…
Reference in New Issue