FlutlyTextfield constructor

FlutlyTextfield({
  1. VoidCallback? onTextfieldEmpty,
  2. double height = 40,
  3. dynamic onChanged(
    1. String
    )?,
  4. VoidCallback? onEditingComplete,
  5. Color? cursorColor,
  6. bool? autofocus,
  7. bool? expanded,
  8. VoidCallback? onFocus,
  9. VoidCallback? onUnfocus,
  10. TextEditingController? controller,
  11. FocusNode? focusNode,
  12. Widget leadingWidget = const SizedBox.shrink(),
  13. TextStyle textFieldStyle = const TextStyle(fontSize: 13),
  14. BoxDecoration textFieldDecoration = const BoxDecoration(color: Color(0xffE8E8E8)),
  15. InputDecoration inputDecoration = const InputDecoration.collapsed(hintText: 'Enter Your Text Here', hintStyle: TextStyle(fontSize: 13, color: Color(0xffaeaeae))),
  16. Widget clearButtonIcon = const Icon(Icons.clear_rounded, color: Color(0xffaeaeae), size: 20),
  17. TextDirection direction = TextDirection.ltr,
  18. EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  19. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  20. 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,
});