You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the small test program I built using easy_localization I get the following:
The following NoSuchMethodError was thrown building App(dirty):
The getter 'locale' was called on null.
Receiver: null
Tried calling: locale
The relevant error-causing widget was:
App file:///C:/GitProjects/my-test-app/lib/main.dart:66:14
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5) #1 BuildContextEasyLocalizationExtension.locale (package:easy_localization/src/public_ext.dart:88:50) #2 App.build (package:myapp/main.dart:78:17) #3 StatelessElement.build (package:flutter/src/widgets/framework.dart:4620:28) #4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4546:15) #5 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5) #6 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5) #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
... Normal element mounting (555 frames)
In the pubspec.yaml file I have:
easy_localization: 2.3.3
easy_localization_loader: 0.0.2
When I run the small test program I built using easy_localization I get the following:
The following NoSuchMethodError was thrown building App(dirty):
The getter 'locale' was called on null.
Receiver: null
Tried calling: locale
The relevant error-causing widget was:
App file:///C:/GitProjects/my-test-app/lib/main.dart:66:14
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 BuildContextEasyLocalizationExtension.locale (package:easy_localization/src/public_ext.dart:88:50)
#2 App.build (package:myapp/main.dart:78:17)
#3 StatelessElement.build (package:flutter/src/widgets/framework.dart:4620:28)
#4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4546:15)
#5 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
#6 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
... Normal element mounting (555 frames)
In the pubspec.yaml file I have:
easy_localization: 2.3.3
easy_localization_loader: 0.0.2
My relevant code is:
`
import 'package:easy_localization_loader/easy_localization_loader.dart';
import 'package:easy_localization/easy_localization.dart';
The text was updated successfully, but these errors were encountered: