pub enum SnackBarBehavior {
Fixed,
Floating,
}Expand description
Defines where a SnackBar should appear within a Scaffold and how its
location should be adjusted when the scaffold also includes a
FloatingActionButton or a BottomNavigationBar.
Variants§
Fixed
Fixes the SnackBar at the bottom of the Scaffold.
The exception is that the SnackBar will be shown above a
BottomNavigationBar or a NavigationBar. Additionally, the SnackBar
will cause other non-fixed widgets inside Scaffold to be pushed above
(for example, the FloatingActionButton).
Floating
This behavior will cause SnackBar to be shown above other widgets in the
Scaffold. This includes being displayed above a BottomNavigationBar or
a NavigationBar, and a FloatingActionButton when its location is on the
bottom. When the floating action button location is on the top, this behavior
will cause the SnackBar to be shown above other widgets in the Scaffold
except the floating action button.
See https://material.io/design/components/snackbars.html for more details.
Trait Implementations§
Source§impl Clone for SnackBarBehavior
impl Clone for SnackBarBehavior
impl Copy for SnackBarBehavior
Source§impl Debug for SnackBarBehavior
impl Debug for SnackBarBehavior
impl Eq for SnackBarBehavior
Source§impl Hash for SnackBarBehavior
impl Hash for SnackBarBehavior
Source§impl PartialEq for SnackBarBehavior
impl PartialEq for SnackBarBehavior
impl StructuralPartialEq for SnackBarBehavior
Auto Trait Implementations§
impl Forget for SnackBarBehavior
impl Freeze for SnackBarBehavior
impl Move for SnackBarBehavior
impl RefUnwindSafe for SnackBarBehavior
impl Send for SnackBarBehavior
impl Sync for SnackBarBehavior
impl Unpin for SnackBarBehavior
impl UnsafeUnpin for SnackBarBehavior
impl UnwindSafe for SnackBarBehavior
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
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
key and return true if they are equal.