Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
const ui.Label(
isRequired: true,
child: Text('Email address'),
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Label
const Label({
super.key,
this.size,
required this.child,
this.isRequired = false,
this.isInvalid = false,
this.color,
this.requiredColor,
this.invalidColor,
this.fontSize,
this.fontWeight,
this.spacing,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
child | Widget | Yes | — |
isRequired | bool | No | false |
isInvalid | bool | No | false |
color | Color? | No | null |
requiredColor | Color? | No | null |
invalidColor | Color? | No | null |
fontSize | double? | No | null |
fontWeight | FontWeight? | No | null |
spacing | 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/forms/label/label.dart
This reference is generated from the Label declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

