fitRect property

ValueEmitter<Rect> fitRect
latefinal

Where in the editor surface (scaffold-body coords) the image should fit. Each screen pushes its own rect via setFitRect from its onActive lifecycle: compose's rect excludes the floating top bar + bottom strip; tool screens' rects exclude their floating chrome. Because all three screens render the editor full-bleed in the same coord system, the matrix interpolates smoothly across transitions (both scale AND position animate, not just scale).

Implementation

late final ValueEmitter<Rect> fitRect = ValueEmitter<Rect>(Rect.zero)
  ..disposeBy(this);