theme_manager_plus

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

theme manager plus

theme_manager_plus #
Say goodbye to the hassle of remembering complex color schemes! With Theme Manager Plus, managing themes is a breeze. Simply create a class for light and dark themes, tweak your desired colors and styles, and enjoy a seamless and modern app experience. No more headaches, just easy and efficient theme management!

Getting started #
First, add theme_manager_plus as a dependency in your pubspec.yaml file
theme_manager_plus: ^[version]
copied to clipboard
Create Your own class which defines colors and styles which you have to inject e.g
class AppTheme {
Color? backgroundColor;
TextStyle? heading;
TextStyle? subheading;

AppTheme({this.backgroundColor, this.heading, this.subheading});
}
copied to clipboard
Wrap your material app with the ThemeMangerWrapper and assign your light and dark theme and set the current theme to initial theme you want
home:ThemeManagerPlus<AppTheme>(
currentTheme: lightTheme,
darkTheme: Darktheme,
lightTheme: lightTheme,
child: MyApp()),
);
copied to clipboard
Access data from theme
context.themeOf<AppTheme>()?.backgroundColor
copied to clipboard
Note: Replace your class name with the custom class name
Change current theme with theme manager plus
context.changeCurrentTheme<AppTheme>();
copied to clipboard
Check current theme is dark theme
bool isDarkMode context.isDarkMode<AppTheme>();
copied to clipboard
Contribution 🤝 #
Feel free to contribute and open pull requests. 🙌
Issues and Feedback 🐛 #
Feel free to post a feature requests or report a bug here.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.