ametory_framework 0.0.7 ametory_framework: ^0.0.7 copied to clipboard
Ametory Flutter Framework help you build powerfull flutter pattern.
AMETORY FLUTTER FRAMEWORK #
This package help you build powerfull flutter pattern
INSTALLATION #
add flutter dependency:
INSTALL FROM PUB.DEV #
flutter pub add ametory_framework
INSTALL FROM GITLAB #
dependencies:
flutter:
sdk: flutter
// other package
ametory_framework:
git:
url: git@gitlab.com:ametory-open-source/ametory-flutter-framework.git
ref: main
Create new flutter project #
flutter create new_project
Init framework #
first of all, you have to init framework to your flutter project
flutter pub run ametory_framework:init
for web compability, please add --web
argument
flutter pub run ametory_framework:init --web
Generate Feature #
first of all, you have to init framework to your flutter project
flutter pub run ametory_framework:generate ExampleFeature
Add Provider #
flutter pub run ametory_framework:provider chat_bubble
Add Alias #
- Edit the ~/.bash_aliases or ~/.bashrc (recommended) file using a text editor:
vi ~/.bash_aliases
# or #
nano ~/.bashrc
# or #
nano ~/.zshrc
- Append your bash alias For example append:
alias aff_init='flutter pub run ametory_framework:init'
alias aff_gen='flutter pub run ametory_framework:generate'
alias aff_provider='flutter pub run ametory_framework:provider'
- Save and close the file.
- Activate alias by typing the following source command:
source ~/.bash_aliases
# or #
source ~/.bashrc
# or #
source ~/.zshrc
Run Flutter #
flutter run -t lib/main_development.dart -d chrome