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

Đang mở
#12,151 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
dart, flutter
Lĩnh vực
documentation

Hướng nghiên cứu

Mở src/content/add-to-app/ios/project-setup.md và so sánh hướng dẫn tạo module của tệp này với phần Android project-setup#create-a-flutter-module. Cập nhật ví dụ iOS để sử dụng đường dẫn đến sibling project và lệnh được nêu trong issue, đồng thời giải thích rằng cùng một Flutter module có thể phục vụ cả các host iOS và Android. Hoàn tất khi các đường dẫn chính xác, nhất quán và rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Dart
Star
3.1k
Fork
3.5k
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
88

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flutter/website

Tất cả issue của flutter/website

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.