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
ButtonLayerBuilderthat appliesgradientto foreground content. -
m3eGradientForegroundLayer(
{required BorderRadius clipRadius, required Gradient gradient, required Widget child}) → Widget -
Tints
childwithgradientvia BlendMode.srcIn, clipped toclipRadius.