FTextFieldStyle.inherit constructor
FTextFieldStyle.inherit({
- required FColorScheme colorScheme,
- required FTypography typography,
- required FStyle style,
Creates a FTextFieldStyle that inherits its properties.
Implementation
FTextFieldStyle.inherit({
required FColorScheme colorScheme,
required FTypography typography,
required FStyle style,
}) : this(
keyboardAppearance: colorScheme.brightness,
labelLayoutStyle: FLabelStyles.inherit(style: style).verticalStyle.layout,
enabledStyle: FTextFieldStateStyle.inherit(
contentColor: colorScheme.primary,
hintColor: colorScheme.mutedForeground,
focusedBorderColor: colorScheme.primary,
unfocusedBorderColor: colorScheme.border,
formFieldStyle: style.enabledFormFieldStyle,
typography: typography,
style: style,
),
disabledStyle: FTextFieldStateStyle.inherit(
contentColor: colorScheme.disable(colorScheme.primary),
hintColor: colorScheme.disable(colorScheme.border),
focusedBorderColor: colorScheme.disable(colorScheme.border),
unfocusedBorderColor: colorScheme.disable(colorScheme.border),
formFieldStyle: style.disabledFormFieldStyle,
typography: typography,
style: style,
),
errorStyle: FTextFieldErrorStyle.inherit(
contentColor: colorScheme.primary,
hintColor: colorScheme.mutedForeground,
focusedBorderColor: colorScheme.error,
unfocusedBorderColor: colorScheme.error,
formFieldErrorStyle: style.errorFormFieldStyle,
typography: typography,
style: style,
),
);