Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
Create a TextEditingController in your state object and dispose it when the widget is removed.
ui.Input(
controller: controller,
placeholder: 'Your name',
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Input
const Input({
super.key,
this.size,
required this.controller,
this.placeholder,
this.focusNode,
this.readOnly = false,
this.autofocus = false,
this.autocorrect = true,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.autofillHints,
this.inputFormatters,
this.onSubmitted,
this.onEditingComplete,
this.enabled = true,
this.obscureText = false,
this.keyboardType = TextInputType.text,
this.onChanged,
this.padding,
this.backgroundColor,
this.foregroundColor,
this.placeholderColor,
this.borderColor,
this.focusedBorderColor,
this.borderRadius,
this.height,
this.fontSize,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
controller | TextEditingController | Yes | — |
placeholder | String? | No | null |
focusNode | FocusNode? | No | null |
readOnly | bool | No | false |
autofocus | bool | No | false |
autocorrect | bool | No | true |
textInputAction | TextInputAction? | No | null |
textCapitalization | TextCapitalization | No | TextCapitalization.none |
autofillHints | Iterable<String>? | No | null |
inputFormatters | List<TextInputFormatter>? | No | null |
onSubmitted | ValueChanged<String>? | No | null |
onEditingComplete | VoidCallback? | No | null |
enabled | bool | No | true |
obscureText | bool | No | false |
keyboardType | TextInputType | No | TextInputType.text |
onChanged | ValueChanged<String>? | No | null |
padding | EdgeInsetsGeometry? | No | null |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
placeholderColor | Color? | No | null |
borderColor | Color? | No | null |
focusedBorderColor | Color? | No | null |
borderRadius | double? | No | null |
height | double? | No | null |
fontSize | double? | No | null |
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/input/input.dart
This reference is generated from the Input declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

