main_button 0.0.7 main_button: ^0.0.7 copied to clipboard
is a versatile Flutter package for creating highly customizable buttons with options for loading indicators, disabled states, and flexible content.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add main_button
With Flutter:
$ flutter pub add main_button
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
main_button: ^0.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:main_button/main_button.dart';