build method
Builds the widget tree for this effect.
context is the build context from the parent GKWidget.
controller is the animation controller driving this effect.
child is the optional child widget from the hosting GKWidget.
Effects that operate on the child (e.g. dissolve) should wrap it;
overlay effects (e.g. glitch, aurora) may stack it underneath.
Implementation
@override
Widget build(BuildContext context, GKController controller, {Widget? child}) {
final disableAnimations =
MediaQuery.maybeOf(context)?.disableAnimations ?? false;
if (disableAnimations) {
return _buildStatic(child);
}
return _RadarShaderWidget(
controller: controller,
config: config,
child: child,
);
}