何も考えずにCupertinoTimePickerを追加すると、端末の言語設定に関わらず、英語表記になってしまいます。

Widgetのプロパティでどうにかできると思いきやそのような機能は提供されていませんでした。いろいろ調べた結果、Flutterアプリケーションの多言語化対応が必要でした。
まず、Flutter公式のflutter_localizationsプラグインをインストールします。公式プラグインは、pub.devで提供されるのではなく、Flutter内部に内包されているようです。https://github.com/flutter/flutter/tree/master/packages/flutter_localizations
pubspecにプラグインを追記します。
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
main.dartでMaterialAppを使用しているので、ここでlocalizationsDelegatesとsupportedLocalesプロパティを追記します。
return MaterialApp(
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: [
Locale('English'),
Locale('ja')
],
title: 'xxx',
home: HomeScreen(title: "xxx"),
//...
);
最後に、iOSアプリで使用するためにInfo.plist
に対応言語を追記します。XCodeでInfo.plist
を開きます。
Information Property List
にLocalizations
を追加- Valueに
Japanese
とEnglish
を追加

結果、このようになりました!(結構苦労しました…)

「FlutterのCupertinoTimerPickerを日本語化する」への1件の返信
ありがとうございます。助かりました!