MaterialApp(
builder: EasyLoading.init(),
///国际化设置
localizationsDelegates: const [
///下拉插件国际化设置
RefreshLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
locale: Locale("zh", 'CN'),
supportedLocales: <Locale>[
Locale("en", "US"),
Locale("en", ""),
Locale("zh", "CN"),
],
title: "安全文明记录单",
initialRoute: DyysSafeRecordPlugin.homePage,//路由
routes: RouterMap.pages,
// home: AreaListPage(),
)
【Flutter】使用route创建页面或传递页面(不完全)
最新推荐文章于 2024-06-25 17:29:27 发布