Skip to content

SnackBarBehavior

Inherits: Enum

Defines where a SnackBar appears within a page and how it is positioned relative to bottom UI elements.

Properties

  • FIXED

    Anchors the snack bar to the bottom of the page.

  • FLOATING

    Displays the snack bar as a floating surface above page content.

Properties#

FIXED = 'fixed' class-attribute instance-attribute #

Anchors the snack bar to the bottom of the page.

If a NavigationBar is present, the snack bar is shown above it. Other non-fixed content can be pushed upward while the snack bar is visible.

FLOATING = 'floating' class-attribute instance-attribute #

Displays the snack bar as a floating surface above page content.

This mode can overlay bottom widgets, such as a NavigationBar and a bottom-positioned FloatingActionButton.