FTextInput<T extends App<T> > constructor
FTextInput<T extends App<T> > (
- T app, {
- String? key,
- String initialText = '',
- String placeholder = '',
- int? maxLength,
- bool obscureText = false,
- FTextInputStyle inputStyle = .flat,
- int fontSize = 16,
- int fontSpacing = 1,
- void onChangedFn(
- FTextInput<
T> self, - String text
- FTextInput<
- void onSubmitFn(
- FTextInput<
T> self, - String text
- FTextInput<
- String getClipboardTextFn()?,
- Vector2D? size,
- ColorD? borderOverride,
Implementation
FTextInput(super.app, {
super.key,
String initialText = '',
this.placeholder = '',
this.maxLength,
this.obscureText = false,
this.inputStyle = .flat,
this.fontSize = 16,
this.fontSpacing = 1,
this.onChangedFn,
this.onSubmitFn,
this.getClipboardTextFn,
Vector2D? size,
this.borderOverride,
}) {
_text = initialText;
_cursorIndex = initialText.length;
if (size != null) this.size = size;
}