alibaba / alibaba/flutter_boost

4.4.0首次启动获取window.physicalSize为0

Open
#1,914 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

print("main -> window: ${window.physicalSize.width} ${window.physicalSize.height}");
runApp(const MainAppWidget());

输出 main -> window: 0.0 0.0

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

_No response_

### 在下面填入关键复现代码

```
```

### 复现的平台

Both

### Flutter SDK版本

3.7.12

### FlutterBoost版本

4.4.0

### 是否延迟初始化FlutterBoost

No

### 解决方案

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or reproduction steps are identified. Start by reproducing the first-launch behavior on both platforms with Flutter SDK 3.7.12 and FlutterBoost 4.4.0, focusing on the window.physicalSize entry point. Done means the reported physicalSize values are correct instead of 0.0 by the time the shown output is produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.