textStyle property

TextStyle textStyle
final

The text style applied to the input text.

This is a required parameter. The style is modified when the field is disabled (opacity reduced to 0.5).

Example:

OTPTextField(
  textStyle: TextStyle(
    fontSize: 24,
    fontWeight: FontWeight.bold,
    color: Colors.black,
  ),
)

Implementation

final TextStyle textStyle;