flutter_shaders library

Classes

AnimatedSampler
A widget that allows access to a snapshot of the child widgets for painting with a sampler applied to a FragmentProgram.
FragmentShader
A Shader generated from a FragmentProgram.
ShaderBuilder
A widget that loads and caches FragmentPrograms based on the asset key.
ShaderInkFeature
An ink feature that is driven by a developer authored fragment shader and a configuration callback.
ShaderInkFeatureFactory
Allows customization of the material inkwell effect with a user authored fragment shader.
UniformsSetter

Extensions

SetUniforms on FragmentShader
A helper extension on ui.FragmentShader that allows you to set uniforms in a more convenient way. Withotu having to manage indices.

Typedefs

AnimatedSamplerBuilder = void Function(Image image, Size size, Canvas canvas)
A callback for the AnimatedSamplerBuilder widget.
ShaderBuilderCallback = Widget Function(BuildContext, FragmentShader, Widget?)
A callback used by ShaderBuilder.
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.