option_picker 0.1.0 copy "option_picker: ^0.1.0" to clipboard
option_picker: ^0.1.0 copied to clipboard

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 #

IOS ANDROID

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
40
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on option_picker