It is Monday morning and after a FlutterFlow update I get this error out of no where when running "test mode" in the browser and "local run" in my physical device from Flutter flow, but the problem DOES NOT happend when I run the app from VScode in my physical device with the latest code from the main branch.
All branches of the proyect even the ones that have not been modiffied for more than 2 weeks get now the same exact problem
The problem is shown in some pages, not all and I don't know the patern.
dependOnInheritedWidgetOfExactType<DebugFlutterFlowModelContext>() or dependOnInheritedElement() was called before _SettingsComponentsWidgetState.initState() completed.
When an inherited widget changes, for example if the value of Theme.of() changes, its dependent widgets are rebuilt. If the dependent widget's reference to the inherited widget is in a constructor or an initState() method, then the rebuilt dependent widget will not reflect the changes in the inherited widget.
Typically references to inherited widgets should occur in widget build() methods. Alternatively, initialization based on inherited widgets can be placed in the didChangeDependencies method, which is called after initState and whenever the dependencies change thereafter.
The relevant error-causing widget was: DebugFlutterFlowModelContext
Stack trace:
dart:sdk_internal 11994:11
throw_
packages/flutter/src/widgets/widget_state.dart.js 193267:21
<fn>
packages/flutter/src/widgets/widget_state.dart.js 193273:26
dependOnInheritedElement
packages/flutter/src/widgets/widget_state.dart.js 53735:31
dependOnInheritedWidgetOfExactType
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 96192:22 maybeOf
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 63421:100 get rootModel
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 63425:23 get isRouteVisible
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 96534:26 debugLogWidgetClass
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 89152:18 set switchValue1
packages/palletways_plus_v4_0_0/backend/push_notifications/
push_notifications_util.dart.js 90975:40 initState
...