move rect ValueNotifier to interface

This commit is contained in:
Nick Fisher
2023-10-27 20:57:13 +08:00
parent 40485081bc
commit 4a5c62a306

View File

@@ -20,6 +20,12 @@ class TextureDetails {
}
abstract class FilamentController {
///
/// A [ValueNotifier] that holds the current dimensions (in physical pixels, after multiplying by pixel ratio) of the FilamentWidget.
/// If you need to perform work as early as possible, add a listener to this property before a [FilamentWidget] has been inserted into the widget hierarchy.
///
ValueNotifier<Rect?> get rect;
///
/// Whether a Flutter Texture widget should be inserted into the widget hierarchy.
/// This will be false on certain platforms where we use a transparent window underlay.