Fix: shorten text

This commit is contained in:
2024-06-07 14:57:28 +03:00
parent 0170505376
commit 65c8f56e20
7 changed files with 45 additions and 11 deletions

View File

@@ -27,8 +27,8 @@ class GymLinkProvider with ChangeNotifier {
// }
}
void changeTheme(int color) {
_blackTheme = !_blackTheme;
void changeTheme(int color, {bool blackTheme = false}) {
_blackTheme = blackTheme;
_theme = getThemeData(Color(color), _blackTheme);
notifyListeners();
}