flutter / flutter/devtools

Widgets with opacity 0 are not being shown when highlight repaints is selected

オープン
#8,865 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
cost: medium P2 screen: inspector
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
18

説明

I made a (stupid) mistake and used a spinner inside a stack with animated opacity to fade in smoothly.
I saw that my app was using a lot of compute power when I thought nothing was being rendered because the "highlight repaint" feature did not highlight any repaints. In fact the spinner was constantly being rendered but I didnt spot my (stupid) mistake with the animated opacity.
IMO it would be cool if highlight repaint could somehow still highlight repaints even when the opacity is 0 (transparent pixels?)
Thanks for developing this tool and best regards :)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue では、実装ファイル、エントリーポイント、テストのいずれも指定されていません。まず DevTools の Highlight Repaints の実装と、レンダリング関連のテストを見つけます。次に、opacity-zero のウィジェットがどのように扱われるかを確認し、変更を提案する前に、期待される repaint のハイライト動作を定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
performance, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。