-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Support path method to an asset folder #73
Comments
Same here. Working on a project (online game) which is split into mobile app and backend API. The mobile app keeps all the image assets, so for the player avatars I have:
but the API just returns the player avatar as So instead of calling:
I could make it like:
Not a big deal, but already made a dozen of typos in these kind of paths. |
Similarly easy_localization only accepts a path, so I'm hardcoding the path. EasyLocalization(
supportedLocales: [Locale('en', 'US'), Locale('de', 'DE')],
path: 'assets/translations', // <-- change the path of the translation files
fallbackLocale: Locale('en', 'US'),
child: MyApp()
) |
For example I have the next settings:
And the library generates path to the profile image.
But sometime I need to write a specific code and have access to the folder
assets/images
. Could you support the logic?The text was updated successfully, but these errors were encountered: