Skip to content
masterclass Buddy

Flutter & Dart · Component

Center

Center places one child in the middle of its available space. Optional width and height factors size the widget using the child’s dimensions.

Last updated

Syntax

const Center({Key? key, double? widthFactor, double? heightFactor, Widget? child})

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

Subscribe
  • Align
  • Row
  • Column
  • Container
  • ScrollView.center
  • Viewport.center

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