This is a boilerplate project for Flutter that provides a starting point for building a new application. It includes a basic project structure, common dependencies, and some sample code to help you get started.
To use this boilerplate, simply clone the repository and run flutter pub get to install the dependencies:
git clone https://github.com/MahanRahmati/flutter_boilerplate_app.git
cd flutter_boilerplate_app
flutter pub get
You can then open the project in your favorite IDE or text editor and start building your application.
This boilerplate includes several common dependencies that you may find useful when building your application:
Packages | Description |
---|---|
riverpod | State Manager |
go_router | Routing |
go_router_builder | Routing |
hive | Storage |
intl | Internationalization and Localization |
arna_logger | Logger |
flutter_svg | Draw SVG files |
cached_network_image | Load and cache network images |
freezed | Code generation for models |
json_serializable | Code generation for converting to and from JSON |
flutter_native_splash | Native splash screen |
arna_web_service | Web service |
slang | Internationalization and Localization |
derry | Script manager |
You can add or remove dependencies as needed for your specific use case.
The project structure is organized into several directories:
lib: Contains the main part of source code for your application.
packages: Contains everything else that your application needs.
Remove the following lines from .gitignore:
/android/
/ios/
/linux/
/macos/
/web/
/windows/
.metadata
To generate model files, execute the following command: derry models
To create native splash screen, execute the following command: derry native_splash
To generate localization files, execute the following command: derry slang
To generate provider files, execute the following command: derry providers
To generate router files, execute the following command: derry router
This boilerplate is BSD 3-Clause licensed.
Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.
- app_apis
- app_constants
- app_localizations
- app_models
- app_widgets
- screen_home
- service_storage