Fix code gen bug
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import 'package:hiddify/core/locale/locale.dart';
|
import 'package:hiddify/core/locale/locale.dart';
|
||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
|
|
||||||
part 'core_providers.g.dart';
|
final translationsProvider = Provider<TranslationsEn>(
|
||||||
|
(ref) => ref.watch(localeControllerProvider).translations(),
|
||||||
@Riverpod(keepAlive: true)
|
);
|
||||||
TranslationsEn translations(TranslationsRef ref) =>
|
|
||||||
ref.watch(localeControllerProvider).translations();
|
|
||||||
|
|||||||
Reference in New Issue
Block a user