'StackOverflowError was thrown building HeroControllerScope, flutter

I have a very large project in flutter which is connected with back4app i did some little changes last, it was working good today am trying to open my project it display red screen inside it StackOverFlow error and this error in debug

The following StackOverflowError was thrown building HeroControllerScope: Stack Overflow

the relevant error-causing widget was: MaterialApp

MaterialApp:file:///home/ossama/StudioProjects/test_grad/lib/main.dart:49:16
When the exception was thrown, this was the stack: 
#0      FocusNode.enclosingScope (package:flutter/src/widgets/focus_manager.dart:754:3)
#1      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:484:35)
#2      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#3      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#4      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#5      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#6      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#7      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#8      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#9      FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#10     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#11     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#12     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#13     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#14     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#15     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#16     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#17     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#18     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#19     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#20     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#21     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#22     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#23     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#24     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#25     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#26     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#27     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#28     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#29     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#30     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#31     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#32     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#33     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#34     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#35     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#36     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#37     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#38     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#39     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#40     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#41     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#42     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
#43     FocusNode.canRequestFocus (package:flutter/src/widgets/focus_manager.dart:485:33)
...
...
#76999  SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
...     Normal element mounting (7 frames)
#77006  _NestedHookElement.mount (package:nested/nested.dart:187:11)
...     Normal element mounting (7 frames)
#77013  SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
...     Normal element mounting (7 frames)
#77020  Element.inflateWidget (package:flutter/src/widgets/framework.dart:3817:16)
#77021  Element.updateChild (package:flutter/src/widgets/framework.dart:3551:18)
#77022  RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1202:16)
#77023  RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1171:5)
#77024  RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1119:18)
#77025  BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2597:19)
#77026  RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1118:13)
#77027  WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:953:7)
#77028  WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:933:7)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

and Thank you for your time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source