Be more explicit on flutter version change

Đang mở
#12,107 2 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
Dưới một 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ệ
flutter, git
Lĩnh vực
documentation

Hướng nghiên cứu

Mở src/content/install/upgrade.md và xem lại các hướng dẫn “Switch to a specific Flutter version” cho trang docs.flutter.dev/install/upgrade/. Làm rõ rằng việc chạy các lệnh Flutter sử dụng phiên bản của repository đã được checkout, đưa ra ví dụ về một phiên bản dạng số và đề cập git switch là lệnh được khuyến nghị. Hoàn tất khi các bước giải thích rõ ràng, không mơ hồ về định dạng phiên bản và cách repository hoạt động.

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

Mô tả

from.page-issue p2-medium
Page URL

https://docs.flutter.dev/install/upgrade/

Page source

https://github.com/flutter/website/tree/main/src/content/install/upgrade.md

Describe the problem

Instructions for "Switch to a specific Flutter version" are unclear. They might be ok for people who don't know anything about building applications so that they can copy-paste solutions, or they are great for people who know how exactly the flutter works. As someone who occasionally dibbles with flutter, it was confusing to me why ONLY git checkout in a local repo would affect the global executable. Likewise, it isn't clear to me that the expected version is just the symver, i.e. 3.29.3. Often these can be v3.29.3 or specific hash.

Expected fix
  1. Add a line that "once the repository is updated execution of any flutter command will update the flutter to the expected version".
  2. Add an example of the version expected, e.g. "to change to version 3.32.0 type git checkout 3.32.0".

Bonus:

  • It's now recommended to use git switch instead of git checkout.
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.