FlutterInputField constructor

const FlutterInputField({
  1. Key? key,
  2. required String hintText,
  3. required String labelText,
  4. required Function onChange,
  5. required Function onDone,
  6. Widget? prefixWidget,
  7. Widget? suffixWidget,
  8. Color borderColor = Colors.blue,
  9. TextEditingController? textFieldController,
  10. Function? suffixTap,
  11. Function? validateTextField,
  12. Color? filledColor = Colors.lightBlue,
  13. bool isSecure = false,
  14. int lineHeight = 1,
  15. double labelFontSize = 16,
  16. double hintFontSize = 16,
})

Implementation

const FlutterInputField({
  Key? key,
  required this.hintText,
  required this.labelText,
  required this.onChange,
  required this.onDone,
  this.prefixWidget,
  this.suffixWidget,
  this.borderColor = Colors.blue,
  this.textFieldController,
  this.suffixTap,
  this.validateTextField,
  this.filledColor = Colors.lightBlue,
  this.isSecure = false,
  this.lineHeight = 1,
  this.labelFontSize = 16,
  this.hintFontSize = 16,
}) : super(key: key);