GTFInputBox constructor

const GTFInputBox({
  1. Key? key,
  2. dynamic onSubmit(
    1. String
    )?,
  3. String? text,
  4. int count = 6,
  5. bool unfocusedSubmit = true,
  6. GTFInputBoxItemType type = GTFInputBoxItemType.box,
  7. EdgeInsets padding = EdgeInsets.zero,
  8. double itemSpaceWidth = 12,
  9. double itemWidth = 42,
  10. double itemHeight = 48,
  11. double radius = 4,
  12. double cursorWidth = 2,
  13. double cursorTopIndent = 8,
  14. double cursorBottomIndent = 8,
  15. double underlineHeight = 2,
  16. double underlineLeftIndent = 4,
  17. double underlineRightIndent = 4,
  18. double fontSize = GTFFont.h3,
  19. FontWeight fontWeight = GTFFont.semiBold,
  20. Color textColor = GTFColor.grey6,
  21. Color backgroundColor = GTFColor.grey1,
  22. Color cursorColor = GTFColor.grey6,
  23. Color underlineColor = GTFColor.grey6,
  24. Gradient? backgroundGradient,
})

Implementation

const GTFInputBox({
  Key? key,
  this.onSubmit,
  this.text,
  this.count = 6,
  this.unfocusedSubmit = true,
  this.type = GTFInputBoxItemType.box,
  this.padding = EdgeInsets.zero,
  this.itemSpaceWidth = 12,
  this.itemWidth = 42,
  this.itemHeight = 48,
  this.radius = 4,
  this.cursorWidth = 2,
  this.cursorTopIndent = 8,
  this.cursorBottomIndent = 8,
  this.underlineHeight = 2,
  this.underlineLeftIndent = 4,
  this.underlineRightIndent = 4,
  this.fontSize = GTFFont.h3,
  this.fontWeight = GTFFont.semiBold,
  this.textColor = GTFColor.grey6,
  this.backgroundColor = GTFColor.grey1,
  this.cursorColor = GTFColor.grey6,
  this.underlineColor = GTFColor.grey6,
  this.backgroundGradient,
}) : super(key: key);