option_picker 0.1.0

Flutter Android iOS

This package adds a concise way to implement a two(only) option modal picker.

option_picker #

This package was created to use for choosing between the camera gallery and taking a picture, but it can be used for any two option scenario.

Screenshots #

IOSANDROID

HOW TO USE #

just implement the OptionPicker.Show(); method and you are good to go!

onPressed: () {
OptionPicker.show(
            context: context,
            title: "Choose Photo",
            subtitle: "",
            firstButtonText: "Gallery",
            onPressedFirst: () {
              //open photo gallery
            },
            secondButtonText: "Take a Picture",
            onPressedSecond: () {
              //open camera
            },
          );
}
1
likes
80
pub points
4%
popularity

This package adds a concise way to implement a two(only) option modal picker.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

maccarone1989@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on option_picker