feat: create password page
This commit is contained in:
@@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../components/button/button.dart';
|
||||
import '../../../router/app_router.gr.dart';
|
||||
|
||||
@RoutePage()
|
||||
@@ -83,7 +82,7 @@ class _OtpPageState extends State<OtpPage> {
|
||||
void _verifyCode() {
|
||||
String code = _controllers.map((controller) => controller.text).join();
|
||||
if (code.length == 6) {
|
||||
context.router.push(PinRoute(isCreatePin: true));
|
||||
context.router.push(CreatePasswordRoute());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,21 +227,6 @@ class _OtpPageState extends State<OtpPage> {
|
||||
),
|
||||
],
|
||||
|
||||
const Spacer(),
|
||||
|
||||
// Continue Button
|
||||
AppElevatedButton(
|
||||
title: 'Verifikasi',
|
||||
onPressed: () {
|
||||
String code = _controllers
|
||||
.map((controller) => controller.text)
|
||||
.join();
|
||||
if (code.length == 6) {
|
||||
_verifyCode();
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
const SizedBox(height: 24),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user