September 2019
Beginner
512 pages
12h 52m
English
To create a Dart package in Flutter, we will use the well-known Flutter create tool. One of the arguments of this tool (--template) determines the kind of package that we are creating: an app package, a Dart package, or a plugin package. We use the --template argument to create a new Dart package:
flutter create --template=package simple_package
This will generate a project called simple_package that contains a simple Dart package project. The generated project structure is as simple as a Dart package and does not have anything specific to Flutter:

As you can see, it does not contain the typical android and ...
Read now
Unlock full access