0 purchases
ametory framework
AMETORY FLUTTER FRAMEWORK #
This package help you build powerfull flutter pattern
INSTALLATION #
add flutter dependency:
INSTALL FROM PUB.DEV #
flutter pub add ametory_framework
copied to clipboard
INSTALL FROM GITLAB #
dependencies:
flutter:
sdk: flutter
// other package
ametory_framework:
git:
url: [email protected]:ametory-open-source/ametory-flutter-framework.git
ref: main
copied to clipboard
Create new flutter project #
flutter create new_project
copied to clipboard
Init framework #
first of all, you have to init framework to your flutter project
flutter pub run ametory_framework:init
copied to clipboard
for web compability, please add --web argument
flutter pub run ametory_framework:init --web
copied to clipboard
Generate Feature #
first of all, you have to init framework to your flutter project
flutter pub run ametory_framework:generate ExampleFeature
copied to clipboard
Add Provider #
flutter pub run ametory_framework:provider chat_bubble
copied to clipboard
Add Widget #
for common widget
flutter pub run ametory_framework:widget product --data id:int,name:string,is_active:bool,padding:float,onTap:function
copied to clipboard
or
flutter pub run ametory_framework:widget product --data id:int,name:string,is_active:bool,padding:float,onTap:function --feature home
copied to clipboard
for feature widget
Add Model #
for common model
flutter pub run ametory_framework:model product --data id:int,name:string,is_active:bool,padding:float,onTap:function
copied to clipboard
or
flutter pub run ametory_framework:model product --data id:int,name:string,is_active:bool,padding:float,onTap:function --feature home
copied to clipboard
for feature model
Add Page #
flutter pub run ametory_framework:page product --feature home
copied to clipboard
Generate Doc #
for first initial doc
flutter pub run ametory_framework:doc --init
copied to clipboard
or if you have initialized
flutter pub run ametory_framework:doc
copied to clipboard
Add Alias #
Edit the ~/.bash_aliases or ~/.bashrc (recommended) file using a text editor:
vi ~/.bash_aliases
# or #
nano ~/.bashrc
# or #
nano ~/.zshrc
copied to clipboard
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'
alias aff_model='flutter pub run ametory_framework:model'
alias aff_widget='flutter pub run ametory_framework:widget'
alias aff_page='flutter pub run ametory_framework:page'
alias aff_doc='flutter pub run ametory_framework:doc'
alias aff_admin='flutter pub run ametory_framework:admin'
copied to clipboard
Save and close the file.
Activate alias by typing the following source command:
source ~/.bash_aliases
# or #
source ~/.bashrc
# or #
source ~/.zshrc
copied to clipboard
use alias #
aff_widget product --data id:int,name:string,is_active:bool,padding:float,onTap:function --feature home
copied to clipboard
Run Flutter #
flutter run -t lib/main_development.dart -d chrome
copied to clipboard
ADMIN BOILERPLATE #
after init ametory framework, follow this command:
flutter pub run ametory_framework:admin --feature user,company
copied to clipboard
or add new feature
flutter pub run ametory_framework:admin --add invoice
copied to clipboard
What Next #
✅ Admin Generator
✅ Dashboard Template
✅ Login Template
✅ Register Template
❌ Page Generator Template
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.