flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

Utils.setMIUISetStatusBarLightMode(Activity activity, boolean dark)方法中有崩溃。

Open cedear opened this issue 6 years ago • 3 comments

image image image image 在小米的某些机型(发现问题的都是红米)上拿不到这个类,导致崩溃,希望能够适配一下,谢谢。

cedear avatar Jan 16 '20 18:01 cedear

hello, Crash原因是FlutterBoost.instance().platform().isDebug()为true时, Debuger.exception(t)将抛RuntimeException。 建议开发者解决方案:1.初始化时Platform.isDebug返回true。 (线上应该都为true,所以线上无问题)。 社区解决思路: Debuger.exception(t)后续将提供safemode模式,只打印log,不Crash

Firewayer avatar Mar 04 '20 08:03 Firewayer

hello, Crash原因是FlutterBoost.instance().platform().isDebug()为true时, Debuger.exception(t)将抛RuntimeException。 建议开发者解决方案:1.初始化时Platform.isDebug返回true。 (线上应该都为true,所以线上无问题)。 社区解决思路: Debuger.exception(t)后续将提供safemode模式,只打印log,不Crash

cc @noborder

Firewayer avatar Mar 04 '20 08:03 Firewayer

@cedear 已PR完成上述 Debugger改造, issue即将close https://github.com/alibaba/flutter_boost/pull/627

Firewayer avatar Mar 20 '20 06:03 Firewayer