widgetpicker 0.1.1 icon indicating copy to clipboard operation
widgetpicker: ^0.1.1 copied to clipboard

WidgetPicker is a fork of NumberPicker to support categorical selection via the same UI.

WidgetPicker #

WidgetPicker is a fork of NumberPicker to support categorical selection via the same UI.

Example: #

(See example for more)

class _WidgetExample extends StatefulWidget {
  @override
  __WidgetExampleState createState() => __WidgetExampleState();
}

class __WidgetExampleState extends State<_WidgetExample> {
  String _currentValue = "Grape";

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        WidgetPicker(
          value: _currentValue,
          options: ["Apple", "Banana", "Grape", "Cherry", "Peach"],
          onChanged: (value) => setState(() => _currentValue = value),
        ),
        Text('Current value: $_currentValue'),
      ],
    );
  }
}
4
likes
130
pub points
52%
popularity

Publisher

verified publisher icona1ec.dev

WidgetPicker is a fork of NumberPicker to support categorical selection via the same UI.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

Dependencies

flutter, infinite_listview

More

Packages that depend on widgetpicker