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:
hailin 2025-12-24 22:25:42 -08:00
parent a51fa39a2d
commit 1c62a8cb29
1 changed files with 3 additions and 1 deletions

View File

@ -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),