Skip to main content

FilledButtonStyleFromBuilder

Struct FilledButtonStyleFromBuilder 

Source
pub struct FilledButtonStyleFromBuilder { /* private fields */ }
Expand description

Dart’s FilledButton.styleFrom, collecting its arguments; build is the call.

Implementations§

Source§

impl FilledButtonStyleFromBuilder

Source

pub fn foreground_color( self, foreground_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(foregroundColor:).

Source

pub fn background_color( self, background_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(backgroundColor:).

Source

pub fn disabled_foreground_color( self, disabled_foreground_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(disabledForegroundColor:).

Source

pub fn disabled_background_color( self, disabled_background_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(disabledBackgroundColor:).

Source

pub fn shadow_color(self, shadow_color: Color) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(shadowColor:).

Source

pub fn surface_tint_color( self, surface_tint_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(surfaceTintColor:).

Source

pub fn icon_color(self, icon_color: Color) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(iconColor:).

Source

pub fn icon_size(self, icon_size: f64) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(iconSize:).

Source

pub fn icon_alignment( self, icon_alignment: IconAlignment, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(iconAlignment:).

Source

pub fn disabled_icon_color( self, disabled_icon_color: Color, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(disabledIconColor:).

Source

pub fn overlay_color(self, overlay_color: Color) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(overlayColor:).

Source

pub fn elevation(self, elevation: f64) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(elevation:).

Source

pub fn text_style(self, text_style: TextStyle) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(textStyle:).

Source

pub fn padding( self, padding: EdgeInsetsGeometry, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(padding:).

Source

pub fn minimum_size(self, minimum_size: Size) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(minimumSize:).

Source

pub fn fixed_size(self, fixed_size: Size) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(fixedSize:).

Source

pub fn maximum_size(self, maximum_size: Size) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(maximumSize:).

Source

pub fn side(self, side: BorderSide) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(side:).

Source

pub fn enabled_mouse_cursor( self, enabled_mouse_cursor: MouseCursorRef, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(enabledMouseCursor:).

Source

pub fn disabled_mouse_cursor( self, disabled_mouse_cursor: MouseCursorRef, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(disabledMouseCursor:).

Source

pub fn visual_density( self, visual_density: VisualDensity, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(visualDensity:).

Source

pub fn tap_target_size( self, tap_target_size: MaterialTapTargetSize, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(tapTargetSize:).

Source

pub fn animation_duration( self, animation_duration: Duration, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(animationDuration:).

Source

pub fn enable_feedback( self, enable_feedback: bool, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(enableFeedback:).

Source

pub fn alignment( self, alignment: AlignmentGeometry, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(alignment:).

Source

pub fn splash_factory( self, splash_factory: InteractiveInkFeatureFactoryRef, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(splashFactory:).

Source

pub fn background_builder( self, background_builder: ButtonLayerBuilder, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(backgroundBuilder:).

Source

pub fn foreground_builder( self, foreground_builder: ButtonLayerBuilder, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(foregroundBuilder:).

Source

pub fn shape( self, shape: impl Into<OutlinedBorderRef>, ) -> FilledButtonStyleFromBuilder

Dart FilledButton.styleFrom(shape:).

Source

pub fn build(self) -> ButtonStyle

The ButtonStyle FilledButton.styleFrom returns for the arguments given.

Trait Implementations§

Source§

impl Clone for FilledButtonStyleFromBuilder

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for FilledButtonStyleFromBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for FilledButtonStyleFromBuilder

§

impl !Send for FilledButtonStyleFromBuilder

§

impl !Sync for FilledButtonStyleFromBuilder

§

impl !UnwindSafe for FilledButtonStyleFromBuilder

§

impl Forget for FilledButtonStyleFromBuilder

§

impl Freeze for FilledButtonStyleFromBuilder

§

impl Move for FilledButtonStyleFromBuilder

§

impl Unpin for FilledButtonStyleFromBuilder

§

impl UnsafeUnpin for FilledButtonStyleFromBuilder

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>