feat:verify phone number page ui done
This commit is contained in:
@@ -2,6 +2,9 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/forgot_password_page/forgot_password_page.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/login_page/login_page.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/register_page/register_page.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/reset_password_page/reset_password_page.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/verify_otp_code_page/verify_otp_code_page.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/verify_phone_number_page/verify_phone_page.dart';
|
||||
import 'package:food_delivery_client/feature/home/presentation/pages/restaurants_by_category_page/restaurants_by_category_page.dart';
|
||||
|
||||
import '../../food_delivery_client.dart';
|
||||
@@ -29,6 +32,25 @@ class AppRoutes {
|
||||
pageBuilder: (context, state) =>
|
||||
CupertinoPage(child: ForgotPasswordPage()),
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.verifyPhoneNumber,
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: VerifyPhoneNumberPage(isRegister: state.extra as bool),
|
||||
),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: Routes.verifyOtpCode,
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: VerifyOtpCodePage(isRegister: state.extra as bool),
|
||||
),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: Routes.resetPassword,
|
||||
pageBuilder: (context, state) =>
|
||||
CupertinoPage(child: ResetPasswordPage()),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: Routes.main,
|
||||
|
||||
@@ -8,4 +8,7 @@ abstract class Routes {
|
||||
static const String browse = '/browse';
|
||||
static const String forgotPassword = "/forgot-password";
|
||||
static const String restaurantsByCategory = '/restaurants-by-category';
|
||||
static const String verifyPhoneNumber = "/verify-phone-number";
|
||||
static const String verifyOtpCode = "/verify-otp-code";
|
||||
static const String resetPassword = "/reset-password";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user