animated_item_picker 1.0.2 copy "animated_item_picker: ^1.0.2" to clipboard
animated_item_picker: ^1.0.2 copied to clipboard

outdated

Generic item picker that encapsulates single or multiple item selection logic.

Animated Item Picker #

Generic item picker that encapsulates single or multiple item selection logic.

Suitable for fixed size item lists, e.g level, week day or gender selector etc.

Supports tapUp/tapDown item opacity animation.

Preview #

Usage #

  @override
  Widget build(BuildContext context) {
    return AnimatedItemPicker(
          axis: Axis.horizontal,
          multipleSelection: false,
          itemCount: yourModelList.length,
          pressedOpacity: 0.85,
          initialSelection: {defaultItemIndex},
          onItemPicked: (index, selected) {
         
          },
          itemBuilder: (index, animValue, selected) => _YourItemWidget(
            name: yourModelList[index].name,
            borderColor: _colorTween1.transform(animValue),
            textColor: _colorTween2.transform(animValue),
            iconColor: _colorTween3.transform(animValue)
          ),
      );
  }
34
likes
0
points
38
downloads

Publisher

verified publisherkirn.tech

Weekly Downloads

Generic item picker that encapsulates single or multiple item selection logic.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_item_picker