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
            },
          );
}
copied to clipboard
1
likes
40
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.14 - 2025.02.26

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

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on option_picker