时间选择组件 配置国际化

2020-07-24  本文已影响0人  PharkiLL

pubspec.yaml

  flutter_localizations:
    sdk: flutter
image.png

main.dart

return MaterialApp(

      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate
      ],
      supportedLocales: [
        const Locale('zh','CH'),
        const Locale('en','US')
      ],
    

    );
上一篇 下一篇

猜你喜欢

热点阅读