Closed EStepiuk closed 2 years ago
Add useful switcher() and withTheme() factory constructors to ThemeSwitcher.
ThemeSwitcher.switcher( builder: (context, switcher) { ... onTap: () => switcher.changeTheme( theme: newTheme, ); ... }, );
ThemeSwitcher.withTheme( builder: (context, switcher, theme) { ... onTap: () => switcher.changeTheme( theme: theme.brightness == Brightness.light ? darkTheme : lightTheme, ); ... }, );
Add useful switcher() and withTheme() factory constructors to ThemeSwitcher.