flutter / flutter/devtools

Use `RemoteDiagnosticNode.description` instead of `RemoteDiagnosticNode.widgetRuntimeType`

Đang mở
#8,556 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
inspector-2.0-polish object inspector P2
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

The JSON response for the widget tree currently contains a field titled `description` and a field titled `widgetRuntimeType`.

However, the `widgetRuntimeType` can be computed from the description, which is what we are currently doing in the Flutter Widget Inspector.

Examples:

Widget runtime type: `RootWidget`
description: `[root]`

Widget runtime type: `_InkFeatures`
description: `_InkFeatures-[GlobalKey#af894 ink renderer]`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu trong mã Flutter Widget Inspector hiện đang tính kiểu runtime của widget từ RemoteDiagnosticNode.description, rồi truy vết nơi các trường JSON được sử dụng. Cập nhật consumer để sử dụng description thay vì widgetRuntimeType, sau đó xác minh rằng các nhãn widget được hiển thị vẫn khớp với các ví dụ trong issue này.

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

Đánh giá

Công nghệ
dart, flutter
Lĩnh vực
devtools
Loại issue
Tái cấu trúc
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

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.