[英]Flutter - how change language in image_cropper component?
The default language of tools in this component: https://pub.dev/packages/image_cropper is english.此组件中工具的默认语言: https : //pub.dev/packages/image_cropper是英语。 How I can change the language of tools in this component?
如何更改此组件中工具的语言?
Image Cropper , if you look at the repo, has the following comment: Image Cropper ,如果您查看 repo,有以下评论:
/// * androidUiSettings: controls UI customization on Android. See [AndroidUiSettings].
///
/// * iosUiSettings: controls UI customization on iOS. See [IOSUiSettings].
Over options.dart you have:在options.dart你有:
/// Title for the 'Done' button.
/// Setting this will override the Default which is a localized string for "Done".
final String doneButtonTitle;
/// Title for the 'Cancel' button.
/// Setting this will override the Default which is a localized string for "Cancel".
final String cancelButtonTitle;
Like the comments said, change those for your localized strings and use any language you want.就像评论所说的那样,为您的本地化字符串更改那些并使用您想要的任何语言。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.