Skip to main content
The Stac SliverSafeArea allows you to build a Flutter sliver safe area widget using JSON.
To know more about the safe area widget in Flutter, refer to
the official documentation.

Properties

PropertyTypeDescription
leftbool?Whether to avoid intrusions on the left. Defaults to true.
topbool?Whether to avoid intrusions at the top. Defaults to true.
rightbool?Whether to avoid intrusions on the right. Defaults to true.
bottombool?Whether to avoid intrusions at the bottom. Defaults to true.
minimumMap<String, dynamic>?Minimum padding to apply as edge insets.
sliverMap<String, dynamic>The sliver widget below this widget in the tree. (Required)

Example

StacSliverSafeArea(
  top: true,
  sliver: StacSliverToBoxAdapter(
    child: StacText(data: 'Hello World'),
  ),
)