有什么方法可以使颤振打开得更快?

时间:2020-03-12 13:31:02

标签: android flutter

我正在尝试在Play商店上以发布模式构建应用程序,但是当我开始汇总我的应用程序时,谷歌给了我一些建议,这是性能方面的建议,我想知道如何才能更好地改善打开的应用程序,应用首次启动耗时6744毫秒and here is the image which says my performance

我需要知道我该如何改善...我尝试过更改init的某些内容,但是现在我在应用程序初始化中就拥有了

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(),
      ),
    );
  }
}

0 个答案:

没有答案