Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
ui.Button(
text: 'Continue',
onPressed: () {},
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Button
const Button({
super.key,
this.motion,
required this.text,
required this.onPressed,
this.child,
this.leading,
this.trailing,
this.isLoading = false,
this.isDisabled = false,
this.isFullWidth = false,
this.size,
this.backgroundColor,
this.foregroundColor,
this.padding,
this.borderRadius,
this.height,
this.fontSize,
this.iconSize,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
motion | ComponentMotion? | No | null |
text | String | Yes | — |
onPressed | VoidCallback? | Yes | — |
child | Widget? | No | null |
leading | Widget? | No | null |
trailing | Widget? | No | null |
isLoading | bool | No | false |
isDisabled | bool | No | false |
isFullWidth | bool | No | false |
size | ButtonSize? | No | null |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
padding | EdgeInsetsGeometry? | No | null |
borderRadius | double? | No | null |
height | double? | No | null |
fontSize | double? | No | null |
iconSize | double? | 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/buttons/button/button.dart
This reference is generated from the Button declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

