pub enum SnackBarBehavior {
Fixed,
Floating,
}Expand description
Where a snack bar sits, and therefore what it looks like (snack_bar_theme.dart:27).
The reference treats this as one question with consequences rather than a bag of settings: a bar fixed to the bottom of the page and a bar floating above it differ in their corners, their padding and the room they keep clear, and they differ that way because of where they are.
Variants§
Fixed
Fixed to the bottom of the page: square corners, flush to the edges, its text
held further in. The reference’s default (snack_bar.dart:986).
Floating
Floating above the page: rounded, held clear of the edges by its own margin, and drawn over everything rather than pushing anything up.
Trait Implementations§
Source§impl Clone for SnackBarBehavior
impl Clone for SnackBarBehavior
impl Copy for SnackBarBehavior
Source§impl Debug for SnackBarBehavior
impl Debug for SnackBarBehavior
Source§impl Default for SnackBarBehavior
impl Default for SnackBarBehavior
impl Eq for SnackBarBehavior
Source§impl PartialEq for SnackBarBehavior
impl PartialEq for SnackBarBehavior
impl StructuralPartialEq for SnackBarBehavior
Auto Trait Implementations§
impl Freeze 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> 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