feat:verify your account page ui done
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:food_delivery_client/feature/auth/presentation/pages/create_new_password_page/create_new_password_page.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/verify_account_page/verify_account_page.dart';
|
||||
import 'package:food_delivery_client/feature/onboarding/presentation/pages/onboarding_page/onboarding_page.dart';
|
||||
import 'package:food_delivery_client/feature/onboarding/presentation/pages/splash_page/splash_page.dart';
|
||||
|
||||
@@ -30,6 +33,23 @@ class AppRoutes {
|
||||
path: Routes.main,
|
||||
pageBuilder: (context, state) => CupertinoPage(child: MainPage()),
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.forgotPassword,
|
||||
pageBuilder: (context, state) =>
|
||||
CupertinoPage(child: ForgotPasswordPage()),
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.verifyAccount,
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: VerifyAccountPage(phoneNumber: state.extra as String),
|
||||
),
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.createNewPassword,
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: CreateNewPasswordPage(phoneNumber: state.extra as String),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,12 +4,7 @@ abstract class Routes {
|
||||
static const String login = '/login';
|
||||
static const String register = '/register';
|
||||
static const String main = '/main';
|
||||
static const String categories = '/categories';
|
||||
static const String filters = '/filters';
|
||||
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";
|
||||
static const String createNewPassword = '/create-new-password';
|
||||
static const String forgotPassword = '/forgot-password';
|
||||
static const String verifyAccount = '/verify-account';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user