Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
PressableFeedback
const PressableFeedback({
super.key,
this.role = MotionRole.pressableFeedback,
required this.child,
this.onPressed,
this.onLongPress,
this.enabled = true,
this.pressedOpacity = 0.7,
this.pressedScale = 1.0,
this.borderRadius,
this.cursor,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
role | MotionRole | No | MotionRole.pressableFeedback |
child | Widget | Yes | — |
onPressed | VoidCallback? | No | null |
onLongPress | VoidCallback? | No | null |
enabled | bool | No | true |
pressedOpacity | double | No | 0.7 |
pressedScale | double | No | 1.0 |
borderRadius | BorderRadiusGeometry? | No | null |
cursor | MouseCursor? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/utilities/pressable_feedback/pressable_feedback.dart
This reference is generated from the PressableFeedback declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

