我正在尝试在 Play Store 上以发布模式构建应用程序,但是当我开始汇总我的应用程序时,谷歌给了我一些建议,其中之一是性能,我想知道如何使打开的应用程序变得更好,我的应用程序占用了 6744 ms 首次启动
我需要知道如何才能更好...
void main() {
final Map<String, dynamic> env = Environment.getConfig();
RestClient.baseUrl = env['apiV4'];
initializeDateFormatting('pt_BR', null).then((_) => runApp(MyApp()));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BlocProvider(
blocs: Blocs.getBlocs(),
child: MaterialApp(
title: 'Vendor',
theme: LjTheme.getTheme(),
debugShowCheckedModeBanner: false,
initialRoute: '/',
routes: Routes.getRoutes(),
),
);
}
}