Publish the material_ui migration of devtools_extensions and devtools_app_shared

Đang mở
#10,062 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart

Hướng nghiên cứu

This is a maintainer release task, not a code change. Start with tool/RELEASE_INSTRUCTIONS.md for the publish order, then check the devtools_shared 14.0.1, devtools_app_shared and devtools_extensions pubspecs on master. Raise the devtools_app_shared constraint in devtools_extensions to the material_ui release, and add the material_ui switch to both changelogs. Done means the three packages are published on pub.dev with matching constraints.

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

Mô tả

devtools-extensions

Summary

devtools_extensions and devtools_app_shared on pub.dev are still the May 4, 2026 releases (0.5.1). Both import package:flutter/material.dart. Flutter beta deprecates that library, and extension authors cannot switch to package:material_ui until these packages are published, because DevToolsExtension builds its own MaterialApp from whichever Material library it was compiled against.

The migration already landed on master in https://github.com/flutter/devtools/pull/10016 (September 24, 2026) and is in the DevTools 2.61.0 tag. Both packages are 0.5.2-wip there and depend on material_ui: ^1.4.0. That DevTools release shipped the app into the Dart SDK only. tool/RELEASE_INSTRUCTIONS.md publishes devtools_extensions, devtools_app_shared, and devtools_shared separately, as needed, and this publish was never requested. There is no open issue tracking it.

Downstream example: https://github.com/IO-Design-Team/hive_ce/issues/350. The Hive inspector is holding deprecated_member_use ignores on package:flutter/material.dart until a pub.dev release exists. TextTheme.of and ScaffoldMessenger.of only see the theme installed by DevToolsExtension when the inspector imports the same Material library.

What is on pub.dev today

Package pub.dev master / v2.61.0
devtools_extensions 0.5.1 (May 4, 2026). Imports package:flutter/material.dart. No material_ui dependency. 0.5.2-wip, material_ui: ^1.4.0
devtools_app_shared 0.5.1 (May 4, 2026). Same Flutter Material imports. 0.5.2-wip, material_ui: ^1.4.0
devtools_shared 14.0.0 (July 14, 2026) 14.0.1, unpublished

The unpublished SDK floor (sdk: ^3.11.0, flutter: ^3.41.0) is already behind stable (Flutter 3.47.9 / Dart 3.13.7).

Publish prep

These three things are still open on master, so this is not a version-number drop:

  1. Publish devtools_shared 14.0.1 first. devtools_extensions and devtools_app_shared constrain it to ^14.0.1, and 14.0.0 is the newest version on pub.dev.
  2. Raise devtools_extensions's devtools_app_shared constraint. It is still ^0.5.1, which resolves to the published package that imports package:flutter/material.dart. The lower bound needs to be the material_ui release of devtools_app_shared.
  3. Note the material_ui switch in both changelogs. The 0.5.2-wip notes do not mention it. This is breaking for extension UIs: DevToolsExtension builds a material_ui MaterialApp, and shared widgets take Material types from that library (for example DevToolsToggleButton.shape is OutlinedBorder). Theme lookups (TextTheme.of, ScaffoldMessenger.of) read a different inherited widget than package:flutter/material.dart.

Please publish devtools_app_shared and devtools_extensions together once those constraints match.

Ngôn ngữ chính
Dart
Star
1.7k
Fork
420
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
29

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/devtools

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

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.