Skip to content

Padding

Wraps child in an EdgeInsets of empty cells on each side.

Learn more: Layout

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

Padding(
padding: const EdgeInsets.symmetric(horizontal: 2, vertical: 1),
child: Text('inset'),
)
ParameterTypeDefaultDescription
padding:EdgeInsetsrequiredEmpty cells to insert around the child.
child:Widget?—Content inset by padding, or null to reserve padding alone.

Padding is defined in packages/fleury/lib/src/widgets/basic.dart.

Category: Layout · All widgets