中文IOS环境下,如果App里配置了中文Locale,长按文本会崩溃, 这个问题是由于‘复制、粘贴’弹窗使用了cupertino控件,即使是在MaterialApp里。 而现在cupertino不支持多语言(#13452)。
解决办法是在ThemeData
里指定platform: TargetPlatform.android
,强制使用Material弹窗。
中文IOS环境下,如果App里配置了中文Locale,长按文本会崩溃, 这个问题是由于‘复制、粘贴’弹窗使用了cupertino控件,即使是在MaterialApp里。 而现在cupertino不支持多语言(#13452)。
解决办法是在ThemeData
里指定platform: TargetPlatform.android
,强制使用Material弹窗。
转载于:https://my.oschina.net/plestoon/blog/3003622