Ravi Parmar
Committed by GitHub

added CircularRevealTransition

@@ -184,3 +184,26 @@ class SizeTransitions { @@ -184,3 +184,26 @@ class SizeTransitions {
184 ); 184 );
185 } 185 }
186 } 186 }
  187 +
  188 +
  189 +class CircularRevealTransition {
  190 + Widget buildTransitions(
  191 + BuildContext context,
  192 + Curve? curve,
  193 + Alignment? alignment,
  194 + Animation<double> animation,
  195 + Animation<double> secondaryAnimation,
  196 + Widget child) {
  197 + return ClipPath(
  198 + clipper: CircularRevealClipper(
  199 + fraction: animation.value,
  200 + centerAlignment: Alignment.center,
  201 + centerOffset: Offset.zero,
  202 + minRadius: 0,
  203 + maxRadius: 800,
  204 + ),
  205 + child: child,
  206 + );
  207 + }
  208 +}
  209 +