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.
Trait Implementations§
Source§impl Clone for TextFieldStyle
impl Clone for TextFieldStyle
Source§fn clone(&self) -> TextFieldStyle
fn clone(&self) -> TextFieldStyle
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 TextFieldStyle
Source§impl Debug for TextFieldStyle
impl Debug for TextFieldStyle
Source§impl Default for TextFieldStyle
impl Default for TextFieldStyle
Source§fn default() -> TextFieldStyle
fn default() -> TextFieldStyle
Auto Trait Implementations§
impl Freeze for TextFieldStyle
impl RefUnwindSafe for TextFieldStyle
impl Send for TextFieldStyle
impl Sync for TextFieldStyle
impl Unpin for TextFieldStyle
impl UnsafeUnpin for TextFieldStyle
impl UnwindSafe for TextFieldStyle
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.