Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:从原生跳转到flutter,首次白屏,切到桌面再返回app可以正常显示 #2136

Closed
liu19939403608 opened this issue Sep 19, 2024 · 3 comments

Comments

@liu19939403608
Copy link

请描述遇到的问题,以及您所期望的正确的结果

18_1726717006.mp4

请说明如何操作会遇到上述问题

No response

在下面填入关键复现代码

复现的平台

Android

Flutter SDK版本

2.5.3

FlutterBoost版本

4.2.1

是否延迟初始化FlutterBoost

No

解决方案

@joechan-cq
Copy link
Collaborator

能否提供日志?

从视频来看,有几个可能的点:

  1. FlutterBoost延迟初始化,但是没有自行接管Activity的Lifecycle管理
  2. 是否使用了flutter_screenutil或者easy_localization

@liu19939403608
Copy link
Author

使用了flutter_screenutil,下面是初始化代码
@OverRide
Widget build(BuildContext context) {

return ScreenUtilInit(
    designSize: Size(375,812),
    // builder: () =>
    // //     FlutterBoostApp(routeFactory, interceptors: [
    // //   CustomInterceptor1()
    // // ])
    // FlutterBoostApp(routeFactory, appBuilder: appBuilder,)

    builder: () => FlutterBoostApp(routeFactory, appBuilder: appBuilder,)
);
// return FlutterBoostApp(routeFactory, interceptors: [
// ]);

}

@joechan-cq
Copy link
Collaborator

参考#2106

@joechan-cq joechan-cq closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants