pub enum MaterialTapTargetSize {
Padded,
ShrinkWrap,
}Expand description
Configures the tap target and layout size of certain Material widgets.
Changing the value in ThemeData::material_tap_target_size will affect the
accessibility experience.
Some of the impacted widgets include:
FloatingActionButton, only the mini tap target size is increased.MaterialButtonOutlinedButtonTextButtonElevatedButtonIconButton- The time picker widget (
showTimePicker) SnackBarChipRawChipInputChipChoiceChipFilterChipActionChipRadioSwitchCheckbox
Variants§
Padded
Expands the minimum tap target size to 48px by 48px.
This is the default value of ThemeData::material_tap_target_size and the
recommended size to conform to Android accessibility scanner
recommendations.
ShrinkWrap
Shrinks the tap target size to the minimum provided by the Material specification.
Trait Implementations§
Source§impl Clone for MaterialTapTargetSize
impl Clone for MaterialTapTargetSize
impl Copy for MaterialTapTargetSize
Source§impl Debug for MaterialTapTargetSize
impl Debug for MaterialTapTargetSize
impl Eq for MaterialTapTargetSize
Source§impl Hash for MaterialTapTargetSize
impl Hash for MaterialTapTargetSize
Source§impl PartialEq for MaterialTapTargetSize
impl PartialEq for MaterialTapTargetSize
impl StructuralPartialEq for MaterialTapTargetSize
Auto Trait Implementations§
impl Forget for MaterialTapTargetSize
impl Freeze for MaterialTapTargetSize
impl Move for MaterialTapTargetSize
impl RefUnwindSafe for MaterialTapTargetSize
impl Send for MaterialTapTargetSize
impl Sync for MaterialTapTargetSize
impl Unpin for MaterialTapTargetSize
impl UnsafeUnpin for MaterialTapTargetSize
impl UnwindSafe for MaterialTapTargetSize
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.