How to create flutter package for pub.dev

flutter create — template=package package_name

OR

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

CHANGELOG.md

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

LICENSE

MIT License

Copyright (c) [2020][Osama Asif]

Now come to the code section.

PUBLISH PACKAGE

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

52 Followers

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