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.
TextEditor
const TextEditor({
super.key,
this.size,
required this.controller,
this.placeholder = 'Start writing...',
this.onChanged,
this.readOnly = false,
this.autofocus = false,
this.showToolbar = true,
this.showWordCount = true,
this.height = 420,
this.fontSize = 16,
this.borderRadius,
this.padding = const EdgeInsets.all(18),
this.backgroundColor,
this.foregroundColor,
this.secondaryColor,
this.borderColor,
this.focusColor,
this.toolbarColor,
this.footer,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
controller | TextEditorController | Yes | — |
placeholder | String | No | 'Start writing...' |
onChanged | ValueChanged<String>? | No | null |
readOnly | bool | No | false |
autofocus | bool | No | false |
showToolbar | bool | No | true |
showWordCount | bool | No | true |
height | double | No | 420 |
fontSize | double | No | 16 |
borderRadius | double? | No | null |
padding | EdgeInsetsGeometry | No | const EdgeInsets.all(18) |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
secondaryColor | Color? | No | null |
borderColor | Color? | No | null |
focusColor | Color? | No | null |
toolbarColor | Color? | No | null |
footer | Widget? | 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/text_editor/text_editor.dart
This reference is generated from the TextEditor declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

