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),
);
1
likes
150
points
76
downloads

Publisher

verified publishersharpsan.dev

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on icon_button_extended