-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
how to pass a parameter to be added to strings localized like "Here is the number:$number" #135875
Comments
you didn't use the extra in your language class.
|
@EgHubs I'll close it for now, as above link and solution should help to resolve the issue. If not, write in comments and I'll reopen it. |
@Ignacio1110
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Is there an existing issue for this?
What package does this bug report belong to?
animations
What target platforms are you seeing this bug on?
Android, iOS
Have you already upgraded your packages?
Yes
Dependency versions
No response
Steps to reproduce
I use these two classes for localization in flutter
following this article setup.
and this LanguageEn:
when I pass this extra parameter I get null
"Update data(null)"
in whatever language I'm inLanguages.of(context,extra: "$activeID")!.text199),
but when I directly select a language class and do this it works and I get the number and not null
"Update data(4)"
LanguageEn(extra: "$activeID").text199),
how to pass dynamic strings with this package?
Expected results
the extra parameter should not be null
Actual results
it's null if I called the Languages class and not null in the LanguagesEn class
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: