option_picker 0.0.3 option_picker: ^0.0.3 copied to clipboard
This package adds a concise way to implement a two(only) option modal, this is perfect for using with an image picker where the client needs to choose between the photo gallery or taking a picture.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add option_picker
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
option_picker: ^0.0.3
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:option_picker/option_picker.dart';