From f3a576005ae43e611d7a572aa7709a6d28d2b425 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 9 Jun 2025 18:09:27 +0800 Subject: [PATCH] expose setShadowsEnabled method on View/FFIView --- .../lib/src/filament/src/implementation/ffi_view.dart | 4 ++++ thermion_dart/lib/src/filament/src/interface/view.dart | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/thermion_dart/lib/src/filament/src/implementation/ffi_view.dart b/thermion_dart/lib/src/filament/src/implementation/ffi_view.dart index dad01a85..3655e01d 100644 --- a/thermion_dart/lib/src/filament/src/implementation/ffi_view.dart +++ b/thermion_dart/lib/src/filament/src/implementation/ffi_view.dart @@ -242,4 +242,8 @@ class FFIView extends View { tFogOptions.enabled = options.enabled; View_setFogOptions(this.view, tFogOptions); } + + Future setShadowsEnabled(bool enabled) async { + View_setShadowsEnabled(this.view, enabled); + } } diff --git a/thermion_dart/lib/src/filament/src/interface/view.dart b/thermion_dart/lib/src/filament/src/interface/view.dart index 9c436e7d..4d13f289 100644 --- a/thermion_dart/lib/src/filament/src/interface/view.dart +++ b/thermion_dart/lib/src/filament/src/interface/view.dart @@ -76,7 +76,7 @@ abstract class View { Future setBloom(bool enabled, double strength); Future setBlendMode(BlendMode blendMode); Future setRenderQuality(QualityLevel quality); - + Future setShadowsEnabled(bool enabled); Future setLayerVisibility(VisibilityLayers layer, bool visible); /// Sets the fog options for this view.