pub struct TextFieldTheme {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 radius: Option<f32>,
pub border_width: Option<f32>,
pub focused_border_width: Option<f32>,
pub floating_label_behavior: Option<FloatingLabelBehavior>,
pub floating_label_alignment: Option<FloatingLabelAlignment>,
pub cursor_color: Option<Color>,
pub cursor_error_color: Option<Color>,
}Expand description
Defaults for TextField.
Fields§
§fill: Option<Color>The container’s fill. A filled field takes the theme’s high surface container by default; an outlined one has none.
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.
radius: Option<f32>Corner radius.
border_width: Option<f32>Border weight at rest.
focused_border_width: Option<f32>Border weight once focused.
floating_label_behavior: Option<FloatingLabelBehavior>When a field’s label floats (milestone 656). Unset, auto.
floating_label_alignment: Option<FloatingLabelAlignment>Where a floated label sits. Unset, at the start.
cursor_color: Option<Color>A field’s caret (milestone 659). Unset, the text selection’s, then primary.
cursor_error_color: Option<Color>The caret while an error shows. Unset, the error colour.