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'),)Constructors
Section titled “Constructors”Padding()
Section titled “Padding()”| Parameter | Type | Default | Description |
|---|---|---|---|
padding: | EdgeInsets | required | Empty cells to insert around the child. |
child: | Widget? | — | Content inset by padding, or null to reserve padding alone. |
Source
Section titled “Source”Padding is defined in packages/fleury/lib/src/widgets/basic.dart.
Category: Layout · All widgets