foregroundBuilder property
final
Creates a Widget that contains the button's child parameter which is used instead of the button's child.
The returned widget is clipped by the button's ButtonStyle.shape, inset by the button's ButtonStyle.padding and aligned by the button's ButtonStyle.alignment.
See also:
- backgroundBuilder, to create a widget that's as big as the button and is layered behind the button's child.
- ButtonStyleButton.clipBehavior, for more information about configuring clipping.
Implementation
final ButtonLayerBuilder? foregroundBuilder;