pub struct TextFieldTheme {Show 14 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>,
}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.
Trait Implementations§
Source§impl Clone for TextFieldTheme
impl Clone for TextFieldTheme
impl Copy for TextFieldTheme
Source§impl Debug for TextFieldTheme
impl Debug for TextFieldTheme
Source§impl Default for TextFieldTheme
impl Default for TextFieldTheme
Source§impl PartialEq for TextFieldTheme
impl PartialEq for TextFieldTheme
impl StructuralPartialEq for TextFieldTheme
Auto Trait Implementations§
impl Freeze for TextFieldTheme
impl RefUnwindSafe for TextFieldTheme
impl Send for TextFieldTheme
impl Sync for TextFieldTheme
impl Unpin for TextFieldTheme
impl UnsafeUnpin for TextFieldTheme
impl UnwindSafe for TextFieldTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more