components/buttons/utils/m3e_button_gradient_foreground library

Constants

m3eGradientForegroundSourceColor → const Color
Opaque white so BlendMode.srcIn shows the gradient as the content color.

Functions

m3eGradientForegroundBuilder({required BorderRadius clipRadius, WidgetStateProperty<Gradient?>? gradient, ButtonLayerBuilder? explicitBuilder}) → ButtonLayerBuilder?
Builds a ButtonLayerBuilder that applies gradient to foreground content.
m3eGradientForegroundLayer({required BorderRadius clipRadius, required Gradient gradient, required Widget child}) Widget
Tints child with gradient via BlendMode.srcIn, clipped to clipRadius.