ShaderConfigCallback typedef
ShaderConfigCallback =
void Function(FragmentShader shader, {required double animation, required Color color, required Offset position, required Size referenceBoxSize, required double targetRadius, required TextDirection textDirection})
A callback used by the ShaderInkFeature to configure the fragment shader on each frame of the inkwell animation.
animation
represents the animation progress, starting at 0
and ending
at 1
when the animation is complete.
See also:
- ShaderInkFeature for more information on the available configuration.
Implementation
typedef ShaderConfigCallback = void Function(
ui.FragmentShader shader, {
required double animation,
required Size referenceBoxSize,
required Color color,
required Offset position,
required TextDirection textDirection,
required double targetRadius,
});