This package provides a dark and light theme and additional constants regarding the style of an app.
It also provides a service to easily change and save the Thememode
Install this package
ChangeNotifierProvider(
create: (BuildContext context) => ThemeModel(),
child: Consumer<ThemeModel>(
builder: (BuildContext context, ThemeModel value, Widget? child) {
return MaterialApp(
title: 'helpwave tasks',
themeMode: themeNotifier.themeMode,
theme: lightTheme,
darkTheme: darkTheme,
home: const Scaffold(),
);
},
),
);