[mob][photos] Inherited widget fix

This commit is contained in:
laurenspriem
2024-10-24 19:21:53 +05:30
parent d16566ec31
commit 4c63ffa90f

View File

@@ -97,9 +97,9 @@ class _ExpandableMenuItemWidgetState extends State<ExpandableMenuItemWidget> {
void _expandableControllerListener() {
setState(() {
if (expandableController.expanded) {
InheritedSettingsState.of(context).increment();
InheritedSettingsState.maybeOf(context)?.increment();
} else {
InheritedSettingsState.of(context).decrement();
InheritedSettingsState.maybeOf(context)?.decrement();
}
});
}