Writing and using fragment shaders

UI

Advanced

Fragment shaders

Adding shaders to an application

Loading shaders at runtime
Canvas API

Authoring shaders

Uniforms

Current position
Colors
Samplers


Performance considerations
Other resources

Note:
  The CanvasKit backend supports this feature on the beta branch
  and should support this API in the next stable release.
  There are no current plans to support this feature in the HTML backend.

Custom shaders can be used to provide rich graphical effects
beyond those provided by the Flutter SDK.
A shader is a program authored in a small, Dart-like language,
known as GLSL,
and executed on the user’s GPU.

Custom shaders are added to a Flutter project
by listing them in the pubspec.yaml file,
and obtained using the FragmentProgram API.