Base Application
Base module to kick start your application development process.
Installation
- add the following in your
pubspec.yaml
:
dependencies:
base_application: ^0.3.0
Init Base Project:
This command will add the basic project structure for your flutter application.
- COMMAND:
flutter pub run base_application:init
Note: Run above command only for new projects. It will replace the lib folder
& replace pubspec.yaml
files of your project.
.Don't forget to setup icons
, splash screens
and package name
after initialization of base project. (Steps are written in respective YAML files).
.All required YAML files will be imported to your project directly after running the init
command!
Included Modules/Packages/Plugins:
Module name | argument | package version | latest version |
---|---|---|---|
Responsive Framework | responsive_framework | ^0.2.0 | |
Dio | dio | ^4.0.6 | |
Get Storage | get_storage | ^2.0.3 | |
Path Provider | path_provider | ^2.0.11 |
How to import optional modules:
- COMMAND:
flutter pub run base_application:add <arguments>
Note: You have to manually import & do native configurations for respective packages. Below Service modules will be added to your project at PATH:- lib/common/services/<argument>
Optional Modules
=> more modules will be included in future!!
Libraries
- app/common/data/assets/assets
- app/common/data/constants/constants
- app/common/data/constants/http_constants
- app/common/data/constants/storage_constants
- app/common/data/strings/strings
- app/common/env/environment
- app/common/env/types/production.env
- app/common/env/types/staging.env
- app/common/routes/route_service
- app/common/services/http/base_http
- app/common/services/http/base_interceptor
- app/common/services/log/log
- app/common/services/storage/storage
- app/common/utils/extensions
- app/common/utils/initializer
- app/common/utils/lifecycle_handler
- app/common/utils/loaders
- app/common/utils/snackbars
- app/common/utils/utils
- app/common/utils/validators
- app/common/widgets/compute/compute_list_widget
- app/common/widgets/compute/compute_widget
- app/common/widgets/http/http_widget
- app/common/widgets/image/image_widget
- app/common/widgets/listener/storage_listener_widget
- app/main
- app/modules/initial/pages/initial_material_app
- app/modules/initial/pages/initial_page
- read_me
- services/apple_authentication/apple_authentication
- services/audio_player/audio_player_service
- services/google_authentication/google_authentication
- services/image_service/image_services
- services/local_notifications/local_notifications
- services/speech_to_text/sst_service
- services/text_to_speech/tts_service
- widgets/barcode/barcode
- widgets/camera/camera