icon_button_extended 0.3.1 copy "icon_button_extended: ^0.3.1" to clipboard
icon_button_extended: ^0.3.1 copied to clipboard

Extends the IconButton widget and adds support for long presses and holds.

Features #

Adds onLongPress and onLongHold to [IconButton].

Usage #

Check out the example app for more info.

IconButtonExtended(
    onPressed: () {
        /// increment on press
    },
    longHoldDebounce: const Duration(milliseconds: 200),
    onLongHold: () {
        /// increment every 200ms on long hold
    },
    icon: const Icon(Icons.add),
);
0
likes
150
pub points
24%
popularity

Publisher

verified publishersharpsan.dev

Extends the IconButton widget and adds support for long presses and holds.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on icon_button_extended