Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nameLocalized throws LateInitialisationError #90

Open
paricleu opened this issue Sep 27, 2022 · 2 comments
Open

nameLocalized throws LateInitialisationError #90

paricleu opened this issue Sep 27, 2022 · 2 comments

Comments

@paricleu
Copy link

If the country is parsed from .parse(...) or .tryParse() accessing nameLocalized throws a LateInitialisationError.
Probably not an easy fix since a context is needed to get the localized name but maybe there is a way to do it.

@YDA93
Copy link

YDA93 commented Oct 30, 2022

Have you found any workaround?

@YDA93
Copy link

YDA93 commented Oct 30, 2022

My workaround:

Country.tryParse(controller.text)?.getTranslatedName(context);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants