Skip to content
On this page

ControlField

A field layout for a control and its supporting text.

ControlField in FluttyUIControlField 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.

ControlField

const ControlField({
  super.key,
  this.size,
  required this.label,
  required this.control,
  this.description,
  this.content,
  this.onTap,
  this.isDisabled = false,
  this.padding,
  this.spacing,
  this.borderRadius,
  this.backgroundColor,
  this.borderColor,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
labelWidgetYes—
controlWidgetYes—
descriptionWidget?Nonull
contentWidget?Nonull
onTapVoidCallback?Nonull
isDisabledboolNofalse
paddingEdgeInsetsGeometry?Nonull
spacingdouble?Nonull
borderRadiusdouble?Nonull
backgroundColorColor?Nonull
borderColorColor?Nonull

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

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

DartFlutter

Get started with FluttyUI