当我去复制或粘贴文本字段时,工具提示始终使用英语,我的设备使用Pt-Br。我该如何改变或解决这个问题?
将flutter_localizations添加到pubspec.yaml:
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
在你的MaterialApp
:
return MaterialApp(
...
locale: const Locale('de'), // change to locale you want. not all locales are supported
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
);