[nativeapi_flutter]: does not reexport `Size` type
还没有人认领这个 Issue。
评估
调研方向
报告指出 nativeapi 包中的 lib/src/foundation/geometry.dart 是其 Size 类型的定义位置,修复方法是让它可以通过公共入口 package:nativeapi/nativeapi.dart 访问。首先检查这个 barrel 库导出了哪些文件,以及几何文件是否在其中。用一个小型 Flutter 应用复现问题:导入 nativeapi 的 Size,并同时导入 Flutter 的 Size。当导入可以编译且不再出现类型不匹配时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Which leads to:
A value of type 'Size (where Size is defined in /home/xxx/develop/flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart)' can't be assigned to a variable of type 'Size (where Size is defined in /home/xxx/.pub-cache/hosted/pub.dev/nativeapi-0.5.7/lib/src/foundation/geometry.dart)'. (Documentation)
Fix:
add nativeapi as dependency
Add the following import:
import 'package:nativeapi/nativeapi.dart' show Size;
- 主要语言
- TypeScript
- 星标
- 170
- 派生
- 15
- 平均合并
- 58 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
libnativeapi/nativeapi 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
libnativeapi/nativeapi#22 ·
查看 libnativeapi/nativeapi 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
riverqueue/river#1576 ·
维护者通常 1 天内回复
-
[bug] A prompt queued during a run is assessed without its text可能已有人在做 @jwiegley 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
DevMortimer/pi-warden#211 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 84/100
mattermost/compass-design#191 ·
维护者通常 1 天内回复
-
Add unit tests for the organization admin role check可能已有人在做 @SaffuSafwan 今天认领。 未关闭area/core good first issue help wanted
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
HorusGoul/trizum#559 · 1 条评论 ·
维护者通常 1 天内回复