Skip to content
On this page

FieldError

Validation feedback displayed alongside a field.

FieldError in FluttyUIFieldError in FluttyUI dark theme

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.

FieldError

const FieldError({
  super.key,
  this.size,
  required this.child,
  this.color,
  this.fontSize,
  this.fontWeight,
  this.padding = EdgeInsets.zero,
  this.textAlign = TextAlign.start,
  this.maxLines,
  this.overflow = TextOverflow.clip,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
childWidgetYes—
colorColor?Nonull
fontSizedouble?Nonull
fontWeightFontWeight?Nonull
paddingEdgeInsetsGeometryNoEdgeInsets.zero
textAlignTextAlignNoTextAlign.start
maxLinesint?Nonull
overflowTextOverflowNoTextOverflow.clip

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/field_error/field_error.dart

This reference is generated from the FieldError declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI