flutter_theme_circle_animation library
A Flutter package that provides a beautiful circle reveal animation for theme switching, similar to Telegram's theme transition effect.
Quick Start
- Wrap your content with ThemeCircleAnimation:
ThemeCircleAnimation(
child: Scaffold(...),
)
- Use ThemeCircleSwitch or trigger manually:
ThemeCircleAnimation.of(context)?.toggle(
onToggle: () => setState(() => isDark = !isDark),
);
Classes
- ThemeCircleAnimation
- A widget that enables circle-reveal theme animations.
- ThemeCircleAnimationState
- State for ThemeCircleAnimation.
- ThemeCircleSwitch
- A pre-built toggle button that triggers the ThemeCircleAnimation.