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.
Trait Implementations§
Source§impl Clone for TextFieldTheme
impl Clone for TextFieldTheme
Source§fn clone(&self) -> TextFieldTheme
fn clone(&self) -> TextFieldTheme
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TextFieldTheme
Source§impl Debug for TextFieldTheme
impl Debug for TextFieldTheme
Source§impl Default for TextFieldTheme
impl Default for TextFieldTheme
Source§fn default() -> TextFieldTheme
fn default() -> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.