Showing
3 changed files
with
6 additions
and
2 deletions
1 | +## [4.1.3] | ||
2 | +- Fix "Error: A value of type 'Locale?' can't be returned from a function"on flutter web (@nickwri) | ||
3 | +- Fix plural translations to expressions >1 (@WolfVic) | ||
4 | + | ||
1 | ## [4.1.2] | 5 | ## [4.1.2] |
2 | - Fix warning ˜can add data to a closed stream˜ when GetBuilder and Obx are nested | 6 | - Fix warning ˜can add data to a closed stream˜ when GetBuilder and Obx are nested |
3 | - Fix get_connect decoder can not be null (@Goddchen) | 7 | - Fix get_connect decoder can not be null (@Goddchen) |
@@ -5,7 +5,7 @@ import 'en_us.dart'; | @@ -5,7 +5,7 @@ import 'en_us.dart'; | ||
5 | import 'pt_br.dart'; | 5 | import 'pt_br.dart'; |
6 | 6 | ||
7 | class TranslationService extends Translations { | 7 | class TranslationService extends Translations { |
8 | - static Locale get locale => Get.deviceLocale; | 8 | + static Locale? get locale => Get.deviceLocale; |
9 | static final fallbackLocale = Locale('en', 'US'); | 9 | static final fallbackLocale = Locale('en', 'US'); |
10 | @override | 10 | @override |
11 | Map<String, Map<String, String>> get keys => { | 11 | Map<String, Map<String, String>> get keys => { |
1 | name: get | 1 | name: get |
2 | description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. | 2 | description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. |
3 | -version: 4.1.2 | 3 | +version: 4.1.3 |
4 | homepage: https://github.com/jonataslaw/getx | 4 | homepage: https://github.com/jonataslaw/getx |
5 | 5 | ||
6 | environment: | 6 | environment: |
-
Please register or login to post a comment