| 1 | import 'package:cake_wallet/di.dart'; |
| 2 | import 'package:cake_wallet/themes/core/custom_theme_colors.dart'; |
| 3 | import 'package:cake_wallet/themes/core/material_base_theme.dart'; |
| 4 | import 'package:cake_wallet/themes/core/theme_store.dart'; |
| 5 | import 'package:flutter/material.dart'; |
| 6 | |
| 7 | /// For access to the current theme that we would have had to do a lot of constructor pass down for. |
| 8 | extension ThemeX on BuildContext { |
| 9 | MaterialThemeBase get currentTheme => getIt<ThemeStore>().currentTheme; |
| 10 | CustomThemeColors get customColors => currentTheme.customColors; |
| 11 | } |