Flutter: WeChat Assets Picker. Change language to English - flutter

I am using flutter wechat_assets_picker, but the language in select picture/camera screen is in Chinese:
enter image description here
Is there anyway to change the language to English?
Thank you

you have to just pass EnglishTextDelegate to textDelegate argument
selectedImages = await AssetPicker.pickAssets(context,textDelegate:EnglishTextDelegate() );

The plugin now supports determining which language (if the language is supported) to use by lookup the Locale through the widget tree. In summary:
If your project supports localizations through the widget tree (Locale specified in the WidgetsApp), the picker will do its own to choose the matching locale.
If none of the languages you're using are supported by the picker, customize your own by extending AssetPickerTextDelegate, then pass through the AssetPickerConfig.textDelegate when calling the picker.

Related

Flutter Platform Specific Navigation Approaches

I've just looking at Flutter for the first time and have a question around navigation. I have a single project targeting iOS, Android and Web.
I'm looking at Navigation Drawers here:
https://material.io/components/navigation-drawer/flutter#using-a-navigation-drawer
Is it possible to use a Standard Drawer if the target is Web and a Modal if targeting mobile?
I can't quite find anything in the docs around varying things on different platforms or idioms.
You could design custom drawers for each platform and show the specific one by checking the user's platform using the kIsWeb constant.
For example:
import 'package:flutter/foundation.dart' show kIsWeb;
if (kIsWeb) {
// how the web version drawer widget
} else {
// show the non-web version drawer widget
}
Reference taken from https://stackoverflow.com/a/50744481/5882307

Where are inbuilt icons in flutter located (default location in flutter folder)

I want to use flutter inbuilt icons as assets. So I want default location where all of flutter icons are located in flutter folder of flutter installation.
This would seem to imply that there's a fontFamily named 'MaterialIcons'. Not sure you can get it easily from any part of the Flutter distro, but https://material.io/resources/icons/ will show how to download or reference the font for your material designs.
static const IconData ac_unit_outlined = IconData(0xe005, fontFamily: 'MaterialIcons')
I don't think they are. If you look at the IconData class (https://api.flutter.dev/flutter/widgets/IconData-class.html). You will see that the description says 'A description of an icon fulfilled by a font glyph.'
Taking an example of one of the Icon values:
static const IconData list_alt = IconData(0xe81b, fontFamily: 'MaterialIcons');
I believe what that is telling us is that the Icon is being defined by the position 0xe81b in the Unicode font family called MaterialIcons
Not an answer to the original question, but likely tangentially helpful...
To visually identify & search/filter icons, both from the included MaterialIcons from Google and those created by the Community, check out:
https://materialdesignicons.com/
And to use them, the related pub.dev package for material_design_icons_flutter.

Change language/texts of ImagePicker

How can I change the language or texts of messages/buttons of ImagePicker (https://ionicframework.com/docs/native/image-picker) in Android and iOS?
My device language is pt-br, but texts are shown in english.. I need to show in portuguese
Thanks

How to set default language to Arabic instead of english ios swift?

I have developed the app having 2 language(English & Arabic). I have given screen when you can switch the language when you switch language you will need to restart the app and work proper.
But the problem is no i wants to display default language as arabic. I have set "Localization native development region (CFBundleDevelopmentRegion)" as "ar" its not works properly display weired somehow.
I event try to set AppleLanguages in NSUSerDefault but its not display my storyboard as arabic.
Thanks in Advance!

Displaying a localised version of iPhone Contact Picker (ABPeoplePickerNavigationController)

In my app I use the ABPeoplePickerNavigationController to present an address book to the user so they can select a contact from their contacts.
I want my app to support multiple localizations (English, French) and I was expecting the ABPeoplePickerNavigationController to display the correct localised strings when I changed the phone's locale. However, this does not happen - no matter what language I change the iPhone to, the ABPeoplePickerNavigationController always displays English strings. This is strange as the Contacts application on the iPhone does change its text depending on the locale.
Does anyone know how to instruct the ABPeoplePickerNavigationController to display the correct text for the current locale?
Is your app already localized or are you just planning to add localization later? AFAIK, the built-in controls only display localized texts in those languages that your app supports.
fileName : InfoPlist.strings
view -> Utilities -> show file inspector
-> Localization "+" button click >> add language