pub struct TextFieldStyle {Show 18 fields
pub fill: Option<Color>,
pub border_color: Option<Color>,
pub focused_border_color: Option<Color>,
pub error_color: Option<Color>,
pub error_hover_color: Option<Color>,
pub text_color: Option<Color>,
pub label_color: Option<Color>,
pub focused_label_color: Option<Color>,
pub helper_color: Option<Color>,
pub icon_color: Option<Color>,
pub handle_color: Option<Color>,
pub cursor_color: Option<Color>,
pub cursor_error_color: Option<Color>,
pub radius: Option<f32>,
pub border_width: Option<f32>,
pub focused_border_width: Option<f32>,
pub icon_size: Option<f32>,
pub padding_x: Option<f32>,
}Expand description
Everything a TextField paints, each answer the caller’s, the theme’s, or the
framework’s — resolved in that order.
Fields§
§fill: Option<Color>Container fill. A filled field defaults to the theme’s high surface container; an outlined one to nothing at all.
border_color: Option<Color>The border, or the underline, at rest.
focused_border_color: Option<Color>The border once focused.
error_color: Option<Color>Border, label and helper colour while an error is showing.
error_hover_color: Option<Color>The same, under the pointer: an errored field deepens on hover
(input_decorator.dart:5981). Unset, the scheme’s on_error_container.
text_color: Option<Color>The value’s colour.
label_color: Option<Color>The label and the hint, at rest.
focused_label_color: Option<Color>The label once focused.
helper_color: Option<Color>The helper line.
icon_color: Option<Color>The prefix and suffix icons.
handle_color: Option<Color>The handles under a touch selection. Unset, the scheme’s primary
(text_selection.dart:83).
cursor_color: Option<Color>The caret (milestone 659). Unset, the theme’s text selection’s, then the scheme’s
primary, as the reference’s cursorColor is.
cursor_error_color: Option<Color>The caret while an error is showing. Unset, the error colour.
radius: Option<f32>Corner radius.
border_width: Option<f32>Border weight at rest.
focused_border_width: Option<f32>Border weight once focused.
icon_size: Option<f32>Side of the prefix/suffix icons.
padding_x: Option<f32>Padding either side of the content.