alibaba / alibaba/flutter_boost

[Bug]: 集成之后,将文档里的代码复制进项目报错

Open
#2,189 1 comment 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

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

(按照文档进行了集成到新的工程里,并将文档中的代码复制进去,无法运行,会报很多类似The element type 'CupertinoPageRoute Function(RouteSettings, String)' can't be assigned to the map value type 'FlutterBoostRouteFactory' 这样的错误

报错的图片
[https://a1.qpic.cn/psc?/V10pFrvM1MDKQS/IoAt0TAZs8Yc38Jr9jGXIWbyk0xeZTnpYjO1pGURDPmCK9eH.11jYlc5E69ctVpG2Q7nNMVvYI0HO9rPAS.UFw!!/b&ek=1&kp=1&pt=0&bo=OASgBTgEoAUWADA!&tl=1&tm=1741251600&dis_t=1741251890&dis_k=31bdd200c2b359a94729db62a159a424&sce=0-12-12&rf=viewer_311&t=5](url)
### 请说明如何操作会遇到上述问题

_No response_

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

```
```

### 复现的平台

Both

### Flutter SDK版本

3.29.0

### FlutterBoost版本

4.6.5

### 是否延迟初始化FlutterBoost

No

### 解决方案

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documentation integration with Flutter SDK 3.29.0 and FlutterBoost 4.6.5, then compare the documented code with the reported FlutterBoostRouteFactory type error. The issue provides no reproduction code or file path, so confirming the failing example and identifying the documentation or integration entry point comes first; done means the documented integration runs without these type errors.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.