Publish the material_ui migration of devtools_extensions and devtools_app_shared

未關閉
#10,062 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
半天
新手友好度
12/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
dart

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Dart
星號
1.7k
分支
420
平均合併
3 天 11 小時
30 天內合併 PR
29

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

flutter/devtools 的其他 Issue

查看 flutter/devtools 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。