Skip to content

Commit 8cb71b4

Browse files
committed
Fix exclude option condition/variable not working.
1 parent 8c4d25b commit 8cb71b4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/src/transformers/passive_transformer_manager.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,14 @@ class PassiveNodeTransformerManager extends WidgetNodeTransformerManager {
124124
required BaseNode node,
125125
required Widget Function(BuildContext context) builder,
126126
}) {
127-
if (!node.enabled) return const SizedBox.shrink();
127+
final bool enabled = PropertyValueDelegate.getPropertyValue<bool>(
128+
node,
129+
'enabled',
130+
scopedValues: ScopedValues.of(context),
131+
) ??
132+
node.enabled;
133+
134+
if (!enabled) return const SizedBox.shrink();
128135

129136
final CodelesslyContext codelesslyContext =
130137
context.read<CodelesslyContext>();

0 commit comments

Comments
 (0)