If you are running the project for the first time and you do not have anything installed to work with flutter, you need to run this command:
Flutter version: 3.13.5
P.S. make sure you have xcode and android studio installed
make bootstrap
P.S. this script only for mac
Set Additional run args from Edit configuration menu as --dart-define=ENV=dev
(prod, uat, dev)
Make a copy of the file cp .env.example .env
You need to specify the values ββfor the keys in the file:
- API_KEY - key for working with api
This command need for update all generated files:
make gen-force
For cleaning all dependencies, you can call the command:
make clean
Use the following commands to run the project:
fvm flutter pub upgrade
make gen-force
fvm flutter run --release
If you are working through VSCode, you can run the project through the schema, but before that, do not forget to run the commands:
fvm flutter pub upgrade
make gen-force
To work with color or styles, you must use context:
context.colors.white;
context.themeData.header.black;
Information with styles is stored in the directory /common/theme
To add new settings, you need to add parameters to the directory /common/constant
To work with DI, injection is used. Job descriptions can be found /common/injection
If you need to create a singleton object, then you need to add the @singleton prefix above the class for all other cases of @injection
The go_router package is used for navigation. The description of all routes is described in the general file in the directory /common/router
To create a new feature, use the command
make add-feature name=#the name of your feature
To create a new dto, use the command
make add-dto name=#the name of your dto
To create a new api, use the command
make add-api name=#the name of your api
After that, you need to add the key for your api in the lib/common/network/fake_api_manager.dart file.