devtools can only access the first created engine when you have multiple engines in add to app

未關閉
#9,668 2 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
android, dart
領域
devtools

研究方向

首先,使用 Android 安裝步驟和 Dart VM service 連線,透過連結的最小 add-to-app 範例重現問題。檢查多個 Flutter engines 處於作用中時 DevTools 偵錯工具和 widget inspector 的行為;完成標準是可以選取相關的 engine 或 isolate,而不是一律使用第一個。

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

描述

add-to-app cross-screen new feature P2

Overview

When you have a add-to-app with multiple flutter engines active at the same time, the devtools takes the first valid isolate and sets it as main, making it impossible to use widget inspector and other tools

Minimal Example App - https://github.com/AshishSingh2001/minimal-add-to-app

Steps to reproduce

  • run the android app
cd android_app
./gradlew installDebug
  • Attach flutter debugger to the dart VM service (you can get this from logcat)

Issue

In the debugger you will always see homeTab and don't have a way to switch to another tab

The widget inspector is build with keeping normal flutter apps in mind, where only one isolate can be the main isolate, but in add-to-app there can be multiple isolates which can render flutter separately

Image
主要語言
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 摘要。