Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Inherited widget fix

laurenspriem4c63ffa90f47
diff --git a/mobile/lib/ui/components/expandable_menu_item_widget.dart b/mobile/lib/ui/components/expandable_menu_item_widget.dart
index 91c2c8d87b..e212282f68 100644
--- a/mobile/lib/ui/components/expandable_menu_item_widget.dart
+++ b/mobile/lib/ui/components/expandable_menu_item_widget.dart
@@ -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();
}
});
}