Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening upload page for the first time #43

Closed
GustavoContreiras opened this issue Apr 1, 2019 · 1 comment
Closed

Error when opening upload page for the first time #43

GustavoContreiras opened this issue Apr 1, 2019 · 1 comment

Comments

@GustavoContreiras
Copy link
Contributor

GustavoContreiras commented Apr 1, 2019

E/flutter ( 8836): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: inheritFromWidgetOfExactType(_LocalizationsScope) or inheritFromElement() was called before _Uploader.initState() completed.
E/flutter ( 8836): 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.
E/flutter ( 8836): 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.
E/flutter ( 8836): #0      StatefulElement.inheritFromElement.<anonymous closure> 
E/flutter ( 8836): #1      StatefulElement.inheritFromElement 
E/flutter ( 8836): #2      Element.inheritFromWidgetOfExactType 
E/flutter ( 8836): #3      Localizations.of 
E/flutter ( 8836): #4      debugCheckHasMaterialLocalizations.<anonymous closure> 
E/flutter ( 8836): #5      debugCheckHasMaterialLocalizations 
E/flutter ( 8836): #6      showDialog 
E/flutter ( 8836): #7      _Uploader._selectImage 
E/flutter ( 8836): <asynchronous suspension>
E/flutter ( 8836): #8      _Uploader.initState 
E/flutter ( 8836): #9      StatefulElement._firstBuild 
E/flutter ( 8836): #10     ComponentElement.mount 
E/flutter ( 8836): #11     Element.inflateWidget 
E/flutter ( 8836): #12     Element.updateChild 
E/flutter ( 8836): #13     SingleChildRenderObjectElement.mount 
E/flutter ( 8836): #14     Element.inflateWidget 
E/flutter ( 8836): #15     Element.updateChild 
E/flutter ( 8836): #16     ComponentElement.performRebuild 
E/flutter ( 8836): #17     Element.rebuild 
E/flutter ( 8836): #18     ComponentElement._firstBuild 
E/flutter ( 8836): #19     ComponentElement.mount 
E/flutter ( 8836): #20     Element.inflateWidget 
E/flutter ( 8836): #21     Element.updateChild 
E/flutter ( 8836): #22     SingleChildRenderObjectElement.mount 
E/flutter ( 8836): #23     Element.inflateWidget 
E/flutter ( 8836): #24     Element.updateChild 
E/flutter ( 8836): #25     SingleChildRenderObjectElement.mount 
E/flutter ( 8836): #26     Element.inflateWidget 
E/flutter ( 8836): #27     Element.updateChild 
E/flutter ( 8836): #28     ComponentElement.performRebuild 
E/flutter ( 8836): #29     Element.rebuild 
E/flutter ( 8836): #30     ComponentElement._firstBuild 
E/flutter ( 8836): #31     ComponentElement.mount 
E/flutter ( 8836): #32     Element.inflateWidget 
E/flutter ( 8836): #33     Element.updateChild 
E/flutter ( 8836): #34     ComponentElement.performRebuild 
E/flutter ( 8836): #35     Element.rebuild 
E/flutter ( 8836): #36     ComponentElement._firstBuild 
E/flutter ( 8836): #37     ComponentElement.mount (package:flutter/src/widgets/
I/eiras.wavechec( 8836): Background concurrent copying GC freed 45355(2MB) AllocSpace objects, 0(0B) LOS objects, 49% free, 2MB/4MB, paused 8.883ms total 96.775ms

image

https://stackoverflow.com/questions/54910211/errorflutter-lib-ui-ui-dart-state-cc148-unhandled-exception

@mdanics
Copy link
Owner

mdanics commented May 1, 2019

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants