alibaba / alibaba/flutter_boost
3.0最新版本FlutterBoost,每次push一个页面,都会重新build栈内所有页面,问题得不到解决
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
## Steps to Reproduce
路由表映射关系如下:
static Map routerMap = {
FlutterRouteTable.A: (settings, uniqueId) {
return CupertinoPageRoute(
settings: settings,
builder: (_) {
final params = _getParamsFromSettings(settings);
return buildPage(APage(
params: params,
));
});
},
FlutterRouteTable.B: (settings, uniqueId) {
return CupertinoPageRoute(
settings: settings,
builder: (_) {
final params = _getParamsFromSettings(settings);
return buildPage(BPage(
params: params,
));
});
},
}
先打开Flutter A 页面,再打开Flutter B页面。routerMap中也会执行A的builder函数,相当于重新构造了一次APage,这是正常的吗?
**Flutter Boost Version** v3.0-null-safety-preview.15
**Target Platform:**
**Target OS version/browser:**
**Devices:**
## Logs
add your crash log or something else.
```
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the routerMap example in the issue and trace the builder callbacks when navigating from page A to page B. Review the 14-comment thread for the expected stack behavior and any platform-specific details, then reproduce it with Flutter Boost v3.0-null-safety-preview.15. Done means the reported navigation behavior is understood and the intended page-rebuild behavior is confirmed or corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100