ArcaneFieldWrapper class

A wrapper widget for form fields providing consistent styling and layout.

This component displays form field values with metadata such as labels, descriptions, icons, and validation feedback. It integrates with the Arcane form system for a polished user experience.

Inheritance

Constructors

ArcaneFieldWrapper({required Component field, String? labelText, String? description, String? icon, String? error, bool required = false, bool showValidation = true, Component? leading, Component? trailing, Key? key})
const

Properties

description String?
Description text for the field.
final
error String?
Error message to display.
final
field Component
The form field to wrap.
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
Icon identifier.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
labelText String?
Label text for the field.
final
leading Component?
Custom leading widget.
final
required bool
Whether the field is required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showValidation bool
Whether to show validation feedback.
final
trailing Component?
Custom trailing widget.
final

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited