Getting Started (Build & Run)
Follow below steps to build and run your application.
Important:
All below steps are must be followed to build and run applicationDownload Project
Download and find the your project folder, use your preferred IDE (Android Studio / Visual Studio Code / IntelliJ IDEA) to run the project.
Project Structure
BetterHalf project structure and short description for each of them is as follow:
- assets: All the images, icons, fonnt, lottle animattion and rive animation files are stored here .
- lib: Application main file and folder are located
here.
- app
- router: lib\app\router\app_router.dart file contain All the Screen Router For Navigation using auto_router plugin
- view: Alib\app\views\metrimony_app.dart contain Main MaterialApp app Calss is here
- core
- constant: App Constant and App Icons and App Font Files are here
- utils: App related diffrent utils files are here
- models: App All models files are here
- service: App All service files are here inluding service locator
- theme:
- controllers: Theme related controllers are here using Riverpod state Management
- models: Theme related models are here
- persistence: Theme related persistence key class is here
- Settings: Theme Change Setting Controller and view is here
- Ui
- Screen: App All Screen views are here
- widgets: App all universal widgets are here
- main.dart App Main file
- app
- pubspec.yaml: Application name and other project dependencies can be found here.
- flutter_launcher_icons.yaml: Application icon config is here
Get Dependencies
After you loaded project successfully, run the following command in the terminal to install all the
dependencies listed in the pubspec.yaml
file in the project’s root directory or
just click on Pub get in pubspec.yaml file if you don’t want to use command.
flutter pub get
Important:
All below steps are must be followed to build and run applicationBuild and Run App
After the app build completes, you’ll see the app on your device.
If you don’t use Android Studio or IntelliJ you can use the command line to run your application using the following command
Important:
Below step requires flutter path to be set in your Environment variables. See https://flutter.dev/docs/get-started/install/windowsflutter run
You will see below like screen after you have build your app successfully