Skip to content

Commit

Permalink
theme useOldTheme button
Browse files Browse the repository at this point in the history
  • Loading branch information
7Eltantawy committed Feb 7, 2024
1 parent f3da129 commit d866708
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mudawanat_aleibadat/lib/src/core/constants/constants.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const String kHiveBoxName = "mudawanat_aleibadat";
const String kAppVersion = "0.3.0";
const String kAppVersion = "0.3.01";
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ class ThemeScreen extends StatelessWidget {
SwitchListTile(
value: state.useOldTheme,
title: Text(S.of(context).useOldTheme),
onChanged: (value) {
context.read<ThemeCubit>().changeUseOldTheme(value);
},
onChanged: state.useMaterial3
? null
: (value) {
context.read<ThemeCubit>().changeUseOldTheme(value);
},
),
const Divider(),
ListTile(
Expand Down
2 changes: 1 addition & 1 deletion mudawanat_aleibadat/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Track your daily deeds."

publish_to: "none"

version: 0.3.0+3
version: 0.3.01+4

environment:
sdk: ">=3.2.6 <4.0.0"
Expand Down

0 comments on commit d866708

Please sign in to comment.