custom_picker 0.0.1 copy "custom_picker: ^0.0.1" to clipboard
custom_picker: ^0.0.1 copied to clipboard

outdated

A Flutter Package that provides you an beautified alternative of Dropdown widget.

custom_dropdown #

A Flutter Package that provides you an beautified alternative of Dropdown widget. It is highly Customizable in terms of size, color, style, etc.

Import #

dependencies:
  custom_picker: <latest_version>

Code to use #

You can use multiple text beautification options with detected text formats.

CustomPicker(
    // deciding list whether to show loop over popup items
    optionLoop: [false, false],
    // give popup height
    popupHeight: 200,
    // where to show popupmenu
    below: false,
    // give where to place popup vertically
    verticalOffset: 10,
    // hanfle all changes here
    handleChange: (list) {
      print(list);
    },
    //give color to popup selected option
    popUpSelColor: Colors.white,
    //give a decoration to your popupmenu
    popUpDecoration: BoxDecoration(
        color: Colors.amber.withAlpha(50),
        borderRadius: BorderRadius.circular(10)),
    // decorate your picker widget
    widDecoration:
        BoxDecoration(border: Border.all(width: 2, color: Colors.grey)),
    // input all list you want to display in popupmenu
    list: const [
      ['1', '2', '3', '4', '5', '6'],
      ['one', 'two', 'three']
    ],
    // control flex property of picker children
    wtList: [3, 1],
    // callback that'll be call when option of YesNo dialog is clicked
    onChanged: (List<int> value) {
      print(value);
    },
    //give initial selected item indicies
    selected: const [0, 1],
)
       
7
likes
0
pub points
54%
popularity

Publisher

unverified uploader

A Flutter Package that provides you an beautified alternative of Dropdown widget.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_picker