Flutter add2app paths ahould be correct (ie bugfree), clear/easy to understand and match Android

未关闭
#12,151 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
技术栈
dart, flutter
领域
documentation

调研方向

打开 src/content/add-to-app/ios/project-setup.md,并将其中的模块创建说明与 Android project-setup#create-a-flutter-module 部分进行比较。更新 iOS 示例,使其使用 issue 中所示的 sibling-project 路径和命令,并说明同一个 Flutter module 可以同时服务于 iOS 和 Android host。路径正确、一致且清晰即表示完成。

由索引模型根据 Issue 内容生成。

描述

e1-hours from.page-issue p2-medium
Page URL

https://docs.flutter.dev/add-to-app/ios/project-setup/

Page source

https://github.com/flutter/website/tree/main/src/content/add-to-app/ios/project-setup.md

Describe the problem

I believe that cd /path/to/my_flutter for ios module is both incorrect, and slightly confusing compared to the android instructions at https://docs.flutter.dev/add-to-app/android/project-setup#create-a-flutter-module

I believe that the ios instrucitons would create /path/to/my_flutter/my_flutter which is probably not what we want and probably will not "just work" with the rest of the instructions (ie won't be a sibling project)

Expected fix

ios should match Android for creating a flutter module, ie
cd some/path/ flutter create -t module --org com.example flutter_module
In fact it should be somehow "highlighted" that the same flutter module will work, ie optimize for the 80% happy path where ios host and android host use the same flutter module.

Additional context

No response

I would like to fix this problem.
  • I will try and fix this problem on docs.flutter.dev.
主要语言
Dart
星标
3.1k
派生
3.5k
平均合并
2 天 10 小时
30 天内合并 PR
88

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

flutter/website 的其他 Issue

查看 flutter/website 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。