Advertisement
valentina_scardigno

errore

Jan 18th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. ════════ Exception caught by gesture ═══════════════════════════════════════════════════════════════
  2. The following assertion was thrown while handling a gesture:
  3. setState() called in constructor: AddProposalPage#decff(lifecycle state: created, no widget, not mounted)
  4.  
  5.  
  6. This happens when you call setState() on a State object for a widget that hasn't been inserted into the widget tree yet. It is not necessary to call setState() in the constructor, since the state is already assumed to be dirty when it is initially created.
  7.  
  8. When the exception was thrown, this was the stack:
  9. #0 State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1136:9)
  10. #1 State.setState (package:flutter/src/widgets/framework.dart:1147:6)
  11. #2 AddProposalPage.onTappedAddFeed (package:myairbnb_webapp/views/addproposalpage.dart:19:5)
  12. #3 WelcomePage.build.<anonymous closure>.<anonymous closure> (package:myairbnb_webapp/views/welcomepage.dart:164:39)
  13. #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706:14)
  14. ...
  15. Handler: "onTap"
  16. Recognizer: TapGestureRecognizer#06693
  17. debugOwner: GestureDetector
  18. state: ready
  19. won arena
  20. finalPosition: Offset(101.5, 477.5)
  21. finalLocalPosition: Offset(101.5, 26.5)
  22. button: 1
  23. sent tap down
  24. ════════════════════════════════════════════════════════════════════════════════════════════════════
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement