option_picker 0.1.0
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