GlassMorphController constructor
GlassMorphController({
- required TickerProvider vsync,
- MorphSpeed speed = MorphSpeed.normal,
- MorphStyle style = MorphStyle.teardrop,
Creates a GlassMorphController.
vsync must be a valid TickerProvider, typically obtained from
TickerProviderStateMixin.
Implementation
GlassMorphController({
required TickerProvider vsync,
this.speed = MorphSpeed.normal,
this.style = MorphStyle.teardrop,
}) : _animationController = AnimationController.unbounded(vsync: vsync) {
_animationController.addListener(_onTick);
_animationController.addStatusListener(_onStatusChange);
}