Files
umbrix/lib/core/core_providers.dart

16 lines
500 B
Dart
Raw Normal View History

2023-09-06 12:56:30 +03:30
import 'package:hiddify/core/prefs/prefs.dart';
2023-07-06 17:18:41 +03:30
import 'package:riverpod_annotation/riverpod_annotation.dart';
2023-09-06 12:56:30 +03:30
part 'core_providers.g.dart';
@Riverpod(keepAlive: true)
TranslationsEn translations(TranslationsRef ref) =>
2023-09-07 13:43:46 +03:30
ref.watch(localeNotifierProvider).build();
2023-09-06 12:56:30 +03:30
2023-09-06 21:03:43 +03:30
@Riverpod(keepAlive: true)
2023-09-06 12:56:30 +03:30
AppTheme theme(ThemeRef ref) => AppTheme(
ref.watch(themeModeNotifierProvider),
ref.watch(trueBlackThemeNotifierProvider),
ref.watch(localeNotifierProvider).preferredFontFamily,
2023-09-06 12:56:30 +03:30
);