flutter_counter_demo 0.0.1 flutter_counter_demo: ^0.0.1 copied to clipboard
This is optional for your own personal packages, but if you intend to publish your package you must provide a description, which should be in English. The description should be relatively short—60 to [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_counter_demo
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_counter_demo: ^0.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:flutter_counter_demo/flutter_counter_demo.dart';