Top

Mofi Documentation

Generate Route:


  1. To begin, open your project and navigate to the pubspec.yaml file to add the packages needed for URL Launcher and Route Generation.
  2. Next, navigate to the `routes` folder and open the `route_name.dart` file to specify the route names for the corresponding pages.
  3. In the Main.dart file, call the setPathUrlStrategy(). Also, create a GoRouter object and add a function to check if the user is logged in.
  4. You can verify the Login authentication by navigating to the following path: lib --> provider --> auth_provider --> user_data_provider.dart.
  5. In the routes --> route_name.dart folder, finalize the route definitions and verify if it is unrestricted or public.