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
混合开发模式,在flutter_boost 引入flutter_screeutil 用的是文档里写的第二种初始化, #446
Comments
This issue is stale because it has been open for 30 days with no activity. |
我没用过boost , 我觉得可以尝试用自己从原生传过来尺寸试试效果 |
@OverRide 报错 /// 当前设备宽度 dp context 出了问题 但是 不是listView 使用 SingleScroll + Colum 不会出错 一直没搞懂原因 |
只有 第一次启动会出问题 |
搞个一个插件 可以适用于 android平台 和 iOS平台 https://pub.flutter-io.cn/packages/screen_adapter |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
从原生跳Flutter页面第一次会黑屏几秒然后就正常看到页面 第二次之后都正常。。有什么解决方法嘛,初始化代码如下:
void main() async{
///这里的CustomFlutterBinding调用务必不可缺少,用于控制Boost状态的resume和pause
MyFlutterBinding();
await ScreenUtil.ensureScreenSize();
runApp(const MyApp());
}
Widget appBuilder(Widget home) {
}
@OverRide
Widget build(BuildContext context) {
return FlutterBoostApp(
routeFactory,
appBuilder: appBuilder,
);
}
The text was updated successfully, but these errors were encountered: