From 4a5c62a306f6b2fbce6039fcdae5d59fa6211f96 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 27 Oct 2023 20:57:13 +0800 Subject: [PATCH] move rect ValueNotifier to interface --- lib/filament_controller.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/filament_controller.dart b/lib/filament_controller.dart index 06048107..3e3350a9 100644 --- a/lib/filament_controller.dart +++ b/lib/filament_controller.dart @@ -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 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.