时间选择组件 配置国际化
2020-07-24 本文已影响0人
PharkiLL
pubspec.yaml
flutter_localizations:
sdk: flutter

main.dart
return MaterialApp(
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate
],
supportedLocales: [
const Locale('zh','CH'),
const Locale('en','US')
],
);