Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
const ui.Alert(
title: Text('Changes saved'),
description: Text('Your profile is up to date.'),
type: ui.AlertType.success,
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Alert
const Alert({
super.key,
required this.title,
required this.description,
this.type = AlertType.info,
this.size,
this.indicator,
this.actions = const [],
this.padding,
this.spacing,
this.indicatorSpacing,
this.backgroundColor,
this.borderRadius,
this.titleColor,
this.descriptionColor,
this.actionBreakpoint = 480,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
title | Widget | Yes | — |
description | Widget | Yes | — |
type | AlertType | No | AlertType.info |
size | ComponentSize? | No | null |
indicator | Widget? | No | null |
actions | List<Widget> | No | const [] |
padding | EdgeInsetsGeometry? | No | null |
spacing | double? | No | null |
indicatorSpacing | double? | No | null |
backgroundColor | Color? | No | null |
borderRadius | double? | No | null |
titleColor | Color? | No | null |
descriptionColor | Color? | No | null |
actionBreakpoint | double | No | 480 |
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/feedbacks/alert/alert.dart
This reference is generated from the Alert declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

