Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stac.dev/llms.txt

Use this file to discover all available pages before exploring further.

Stac SafeArea allows you to build the Flutter SafeArea widget using JSON. To know more about the SafeArea widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
childStacWidgetThe child widget of the SafeArea.
leftboolWhether to avoid system intrusions on the left.
topboolWhether to avoid system intrusions at the top of the screen, typically the system status bar.
rightboolWhether to avoid system intrusions on the right.
bottomboolWhether to avoid system intrusions on the bottom side of the screen.
minimumStacEdgeInsetsThis minimum padding to apply.
maintainBottomViewPaddingboolSpecifies whether the SafeArea should maintain the bottom MediaQueryData.viewPadding instead of the bottom MediaQueryData.padding, defaults to false.

Example

StacSafeArea(
  child: StacText(
    data: 'Hello, World!',
    style: StacTextStyle(color: StacColors.white, fontSize: 24.0),
  ),
)