Skip to content

Center

Centers its child in the available space.

Learn more: Layout

Import: package:fleury/fleury.dart, or package:fleury/fleury_core.dart in browser code.

Center(child: Text('No results'))

Shorthand for Align(alignment: Alignment.center, child: …).

ParameterTypeDefaultDescription
child:WidgetrequiredThe widget below this widget in the tree.

Center is defined in packages/fleury/lib/src/widgets/align.dart.

Category: Layout · All widgets