Start a new Flutter project in Android Studio and choose Flutter Package for the project type. Put your custom widget in the lib folder. Add a folder named example to the project root. In there, add a Flutter app that demonstrates how to use your widget.
Read moreHow do you import classes in flutter?
Contents in this project Flutter Create Call Function From Another Class in Main Class Dart Android iOS Example Tutorial:
Read moreHow do you import materials in flutter?
Run this command:
Read more