Skip to content

Instantly share code, notes, and snippets.

@Heilum
Last active May 9, 2022 12:22
Show Gist options
  • Save Heilum/d08c814b648a60b2d2f9e3f584da0551 to your computer and use it in GitHub Desktop.
Save Heilum/d08c814b648a60b2d2f9e3f584da0551 to your computer and use it in GitHub Desktop.
A script to create flutter project scaffold
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