headless_button#
Headless Button component.
Provides RTextButton - a button component that handles all behavior (focus, keyboard, pointer input) but delegates visual rendering to a RButtonRenderer capability from the theme.
Usage#
RTextButton(
onPressed: () => print('Pressed!'),
child: Text('Click me'),
)
Renderer Required#
This component requires a RButtonRenderer capability from HeadlessThemeProvider. In debug, missing capabilities trigger a standardized error. In release, the component renders a diagnostic placeholder instead of crashing.
Classes#
| Class | Description |
|---|---|
| RButtonStyle | Simple, Flutter-like styling sugar for RTextButton . |
| RTextButton | A headless text button component. |