The minimal requirements for a library are: pubspec file . The pubspec. yaml file for a library is the same as for an application package—there is no special designation to indicate that the package is a library.
Read moreWhat are the keywords are used to make a custom library in Dart?
Creating Custom Libraries
Read moreHow do you create a dart file in flutter?
On your Android Studio’s menu bar, click File ▸ New ▸ New Flutter Project. Then, select Flutter Package and click Next. Now, follow the instructions to fill in the fields: Project name: Type in focus_detector.
Read more