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. Widget leadingWidget = const SizedBox.shrink(),
  9. TextStyle textFieldStyle = const TextStyle(fontSize: 13),
  10. BoxDecoration textFieldDecoration = const BoxDecoration(color: Color(0xffE8E8E8)),
  11. InputDecoration inputDecoration = const InputDecoration.collapsed(hintText: 'Enter Your Text Here', hintStyle: TextStyle(fontSize: 13, color: Color(0xffaeaeae))),
  12. Widget clearButtonIcon = const Icon(Icons.clear_rounded, color: Color(0xffaeaeae), size: 20),
  13. TextDirection direction = TextDirection.ltr,
  14. EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  15. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  16. Key? key,
})

Implementation

FlutlyTextfield({
  this.onTextfieldEmpty,
  this.height = 40,
  this.onChanged,
  this.onEditingComplete,
  this.cursorColor,
  this.autofocus,
  this.expanded,
  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,
});