Alert
Show persistent semantic status in a native Flutter layout.
Show a persistent status message with a title, description, and optional actions.
Contract
Semantic values match the web system while widget behavior follows Flutter and Material 3.
Install
Add the package, then import its public library.
flutter pub add tinyrack_uiimport 'package:tinyrack_ui/tinyrack_ui.dart';Playground
Usage
import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';
const TRAlert(
variant: TRStatusVariant.success,
title: Text('Changes saved'),
description: Text('The rack is up to date.'),
)Examples
Status variants permalink
Each status variant pairs a semantic color with a matching icon.
With actions permalink
Add a description and inline action buttons for alerts that ask the reader to respond.
API
Alert preserves native Flutter state and callbacks while applying Tinyrack token defaults.