feat: pin page
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../components/button/button.dart';
|
||||
import '../../../router/app_router.gr.dart';
|
||||
|
||||
@RoutePage()
|
||||
class OtpPage extends StatefulWidget {
|
||||
@@ -82,8 +83,7 @@ class _OtpPageState extends State<OtpPage> {
|
||||
void _verifyCode() {
|
||||
String code = _controllers.map((controller) => controller.text).join();
|
||||
if (code.length == 6) {
|
||||
// Add your verification logic here
|
||||
print('Verifying code: $code');
|
||||
context.router.push(PinRoute(isCreatePin: true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user