base_package 1.0.1 base_package: ^1.0.1 copied to clipboard
Create a short demo in the example/ directory to show how to use this package. Common filename patterns include main.dart, example.dart, and base_package.dart. Packages with multiple examples should [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add base_package
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
base_package: ^1.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:base_package/base_package.dart';