WayFar
Search…
KitTextInput

Description

Custom decorated text input based on Material TextFormField.

Preview

Code

text_input.dart
1
class KitTextInput extends StatelessWidget {
2
final String? initialValue;
3
final String? placeholder;
4
final bool obscureText;
5
final FormFieldValidator<String>? validator;
6
final Widget? prefixIcon;
7
final Widget? suffixIcon;
8
final Function(String? value)? onValueChange;
9
final TextEditingController? controller;
10
final Function(String? value)? onSaved;
11
final TextInputType? keyboardType;
12
final bool? enabled;
13
final Function(String? value)? onSubmitted;
14
final FocusNode? focusNode;
15
final TextInputAction? textInputAction;
16
final int? maxLines;
17
18
const KitTextInput({
19
...})
20
}
Copied!

API

This widget has the same properties of TextFormField, please refer to official documentation:
TextFormField class - material library - Dart API
Copy link