Skip to content

Commit

Permalink
Feat: 修改切换颜色无效
Browse files Browse the repository at this point in the history
  • Loading branch information
OHeroJ committed May 28, 2024
1 parent 6aade7d commit 4046259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/style/context_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:provider/provider.dart';
import 'package:web_demo/style/theme_provider.dart';

extension ContextStyle on BuildContext {
bool get isDarkTheme => this.read<ThemeProvider>().isDark;
bool get isDarkTheme => this.watch<ThemeProvider>().isDark;

Color get primaryColor => const Color(0xffEF5138);

Expand Down

0 comments on commit 4046259

Please sign in to comment.