FlutlyTextfield constructor
FlutlyTextfield({
- VoidCallback? onTextfieldEmpty,
- double height = 40,
- dynamic onChanged()?,
- VoidCallback? onEditingComplete,
- Color? cursorColor,
- bool? autofocus,
- bool? expanded,
- VoidCallback? onFocus,
- VoidCallback? onUnfocus,
- TextEditingController? controller,
- FocusNode? focusNode,
- Widget leadingWidget = const SizedBox.shrink(),
- TextStyle textFieldStyle = const TextStyle(fontSize: 13),
- BoxDecoration textFieldDecoration = const BoxDecoration(color: Color(0xffE8E8E8)),
- InputDecoration inputDecoration = const InputDecoration.collapsed(hintText: 'Enter Your Text Here', hintStyle: TextStyle(fontSize: 13, color: Color(0xffaeaeae))),
- Widget clearButtonIcon = const Icon(Icons.clear_rounded, color: Color(0xffaeaeae), size: 20),
- TextDirection direction = TextDirection.ltr,
- EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(16, 8, 16, 8),
- EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
- Key? key,
Implementation
FlutlyTextfield({
this.onTextfieldEmpty,
this.height = 40,
this.onChanged,
this.onEditingComplete,
this.cursorColor,
this.autofocus,
this.expanded,
this.onFocus,
this.onUnfocus,
this.controller,
this.focusNode,
this.leadingWidget = const SizedBox.shrink(),
this.textFieldStyle = const TextStyle(fontSize: 13),
this.textFieldDecoration = const BoxDecoration(color: Color(0xffE8E8E8)),
this.inputDecoration = const InputDecoration.collapsed(
hintText: 'Enter Your Text Here',
hintStyle: TextStyle(fontSize: 13, color: Color(0xffaeaeae)),
),
this.clearButtonIcon =
const Icon(Icons.clear_rounded, color: Color(0xffaeaeae), size: 20),
this.direction = TextDirection.ltr,
this.margin = const EdgeInsets.fromLTRB(16, 8, 16, 8),
this.padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
super.key,
});