GTFInputBox constructor
const
GTFInputBox({
- Key? key,
- dynamic onSubmit()?,
- String? text,
- int count = 6,
- bool unfocusedSubmit = true,
- GTFInputBoxItemType type = GTFInputBoxItemType.box,
- EdgeInsets padding = EdgeInsets.zero,
- double itemSpaceWidth = 12,
- double itemWidth = 42,
- double itemHeight = 48,
- double radius = 4,
- double cursorWidth = 2,
- double cursorTopIndent = 8,
- double cursorBottomIndent = 8,
- double underlineHeight = 2,
- double underlineLeftIndent = 4,
- double underlineRightIndent = 4,
- double fontSize = GTFFont.h3,
- FontWeight fontWeight = GTFFont.semiBold,
- Color textColor = GTFColor.grey6,
- Color backgroundColor = GTFColor.grey1,
- Color cursorColor = GTFColor.grey6,
- Color underlineColor = GTFColor.grey6,
- 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);