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 moreWhat is Flutter plug in?
What is the Flutter plugin? Flutter plugin is the wrapper of the native code like android( Kotlin or java) and iOS(swift or objective c) . For the plugin we need to write android and ios specific code, We can either user Kotlin or Java for Android and swift or objective-c for iOS.11 Oca 2019
Read moreHow do I create a plugin for Flutter?
How to write a Flutter plugin
Read moreHow do I make a Dart plugin?
Developing Dart packages
Read more