Last active
May 9, 2022 12:22
-
-
Save Heilum/d08c814b648a60b2d2f9e3f584da0551 to your computer and use it in GitHub Desktop.
A script to create flutter project scaffold
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ">>>Creating flutter project:$1"; | |
flutter create $1 | |
cd $1 | |
#添加常用Packages | |
flutter pub add equatable | |
flutter pub add flutter_bloc | |
flutter pub add intl | |
flutter pub add flutter_svprogresshud | |
flutter pub add shared_preferences | |
flutter pub add package_info_plus | |
flutter pub get | |
#git 操作 | |
echo ">>>git operations:$2"; | |
git init | |
git add . | |
git commit -m "init" | |
git remote add origin $2 | |
git push origin master | |
#使用android studio 打开项目 | |
open -a /Applications/Android\ Studio.app ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment