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.
EmptyState
const EmptyState({
super.key,
this.size,
this.title = 'Nothing here yet',
this.description = 'Create your first item to get started.',
this.visual,
this.icon,
this.initials,
this.actionLabel,
this.onAction,
this.visualSize,
this.iconSize,
this.titleColor,
this.descriptionColor,
this.visualBackgroundColor,
this.actionBorderColor,
this.actionTextColor,
this.maxWidth,
this.actionWidth,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
title | String | No | 'Nothing here yet' |
description | String | No | 'Create your first item to get started.' |
visual | Widget? | No | null |
icon | Widget? | No | null |
initials | String? | No | null |
actionLabel | String? | No | null |
onAction | VoidCallback? | No | null |
visualSize | double? | No | null |
iconSize | double? | No | null |
titleColor | Color? | No | null |
descriptionColor | Color? | No | null |
visualBackgroundColor | Color? | No | null |
actionBorderColor | Color? | No | null |
actionTextColor | Color? | No | null |
maxWidth | double? | No | null |
actionWidth | 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/data_display/empty_state/empty_state.dart
This reference is generated from the EmptyState declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

