Skip to content

Commit

Permalink
#1829 wrong assumption in the code about opacity being present whenev…
Browse files Browse the repository at this point in the history
…er visibilityTransitionDuration != null && visible != false
  • Loading branch information
kmahmood74 committed Jan 10, 2025
1 parent 1e226b5 commit ad832a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ensemble/lib/framework/widget/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ abstract class EWidgetState<W extends HasController>
rtn = AnimatedOpacity(
// If visible, apply opacity if specified, else default to 1
opacity: widgetController.visible != false
? (Utils.getValidOpacity(widgetController.opacity!) ?? 1)
? (Utils.getValidOpacity(widgetController.opacity ?? 1) ?? 1)
: 0,
duration: widgetController.visibilityTransitionDuration!,
child: rtn);
Expand Down

0 comments on commit ad832a9

Please sign in to comment.