Skip to content
masterclass Buddy

Flutter & Dart · Component

SafeArea

SafeArea adds padding around a widget so operating-system interfaces do not cover it. It can protect selected screen edges and apply a minimum inset.

Last updated

Syntax

const SafeArea({Key? key, bool left = true, bool top = true, bool right = true, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false, required Widget child})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • SliverSafeArea
  • Padding
  • MediaQuery
  • FlutterView.padding

Source: SafeArea class - widgets library - Dart API. Checked 2026-11-03.