pressable library

Classes

DefaultPressableTheme
Define default values for Pressable theme for Widget subtree.
PressableBuilder
Use PressableBuilder to define your own pressable animation. Simplifies working with GestureDetector.
PressableOpacity
Makes child semi-transparent when pressed.
PressableScale
Scales child down when pressed.
PressableThemeOpacity
Customize PressableOpacity animations.
PressableThemeScale
Customize PressableScale animations.

Constants

kLongPressDuration → const Duration
Time required until long press is started. Defaults to 250ms. When the actions is shorter, regular onPressed callback is called. When the action is longer, onLongPressStart callback is called.

Typedefs

PressableBuilderCallback = Widget Function(BuildContext context, bool isPressed, bool isLongPressed)
Builds Widget inside PressableBuilder.