animated_theme_switcher
Animated theme switcher with flutter like telegram.
This library starts from Peyman's stackoverflow question how-to-add-animation-for-theme-switching-in-flutter
Getting started
Add animated_theme_switcher: "^2.0.1" in your pubspec.yaml dependencies.
How To Use
Import the following package in your dart file
Wrap MaterialApp with ThemeProvider widget, as it has shown in the following example:
But if all you want is to provide a theme, use as follows:
Wrap the screen where you whant to make them switch with ThemeSwitchingArea widget, as it has shown in the following example:
Wrap every switcher with ThemeSwitcher builder, and use ThemeSwitcher.of(context).changeTheme function to switch themes;
Use optional named parameter clipper to pass the custom clippers.
Use optional named parameter clipper to pass the custom clippers.