my_first_custom_package 1.0.0 copy "my_first_custom_package: ^1.0.0" to clipboard
my_first_custom_package: ^1.0.0 copied to clipboard

my_first_custom_package package project.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add my_first_custom_package

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  my_first_custom_package: ^1.0.0

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:my_first_custom_package/my_first_custom_package.dart';
1
likes
130
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

my_first_custom_package package project.

Homepage

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on my_first_custom_package