How to create flutter package for

flutter create — template=package package_name


Give your package name and description.
git init
git add — all
git commit -m “initial commit”
git remote add origin git link
git push -u origin master

## [version] - Date* explanations about changes.


MIT License

Copyright (c) [2020][Osama Asif]

Now come to the code section.


flutter pub publish --dry-run
flutter packages pub publish



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Osama Asif

Osama Asif


Senior Software engineer, working on Flutter for more than 3 years, public speaker, article writer, and also an open-source contributor.