Issue 1:
Steps to Reproduce

Create a new project in Intelij.

Use the attached zip file as lib folder.

Run project on Android device.

In lib/components/search-box.dart comment out line 13 - icon: new Icon(Icons.search)

Live reload triggers exception.

Un-comment the line.

Live reload causes another exception.

Logs

Performing hot reload...
I/flutter ( 9995): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 9995): The following assertion was thrown building Container(padding: EdgeInsets(0.0, 16.0, 0.0, 1.0), bg:
I/flutter ( 9995): BoxDecoration(border: Border(BorderSide(Color(0xff000000), 0.0, BorderStyle.none),
I/flutter ( 9995): BorderSide(Color(0xff000000), 0.0, BorderStyle.none), BorderSide(Color(0xff2196f3), 2.0,
I/flutter ( 9995): BorderStyle.solid), BorderSide(Color(0xff000000), 0.0, BorderStyle.none))), margin: EdgeInsets(0.0,
I/flutter ( 9995): 0.0, 0.0, 15.0)):
I/flutter ( 9995): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2145 pos 12: '() {
I/flutter ( 9995): final AbstractNode parent = this.parent;
I/flutter ( 9995): if (parent is RenderObject)
I/flutter ( 9995): return parent._needsCompositing;
I/flutter ( 9995): return true;
I/flutter ( 9995): }': is not true.
I/flutter ( 9995): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 9995): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 9995): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 9995): https://github.com/flutter/flutter/issues/new
I/flutter ( 9995): When the exception was thrown, this was the stack:
I/flutter ( 9995): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:2145:12)
I/flutter ( 9995): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1585:7)
I/flutter ( 9995): #4 RenderBox&RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2967:17)
I/flutter ( 9995): #5 AbstractNode.adoptChild (package:flutter/src/rendering/node.dart:128:13)
I/flutter ( 9995): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1431:21)
I/flutter ( 9995): #7 RenderBox&RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2962:7)
I/flutter ( 9995): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4553:18)
I/flutter ( 9995): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4402:35)
I/flutter ( 9995): #10 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2820:13)
I/flutter ( 9995): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3592:14)
I/flutter ( 9995): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2819:5)
I/flutter ( 9995): #13 Element._activateWithParent (package:flutter/src/widgets/framework.dart:2967:5)
I/flutter ( 9995): #14 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2892:18)
I/flutter ( 9995): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #16 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4538:14)
I/flutter ( 9995): #17 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #19 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4538:14)
I/flutter ( 9995): #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #22 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4538:14)
I/flutter ( 9995): #23 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #26 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #27 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3536:5)
I/flutter ( 9995): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 9995): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #33 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3536:5)
I/flutter ( 9995): #34 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3674:22)
I/flutter ( 9995): #35 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 9995): #36 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #37 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4643:32)
I/flutter ( 9995): #38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #42 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3536:5)
I/flutter ( 9995): #43 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3531:5)
I/flutter ( 9995): #44 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3849:16)
I/flutter ( 9995): #45 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #46 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4643:32)
I/flutter ( 9995): #47 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)
I/flutter ( 9995): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)
I/flutter ( 9995): #49 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #50 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #51 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #52 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #53 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #54 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #55 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #57 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #59 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #61 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #62 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #63 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #67 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #70 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #71 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #72 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #73 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4272:32)
I/flutter ( 9995): #74 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4653:17)
I/flutter ( 9995): #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #78 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #80 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4272:32)
I/flutter ( 9995): #81 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4653:17)
I/flutter ( 9995): #82 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #84 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #85 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #87 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #88 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #89 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #90 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #91 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #92 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #93 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4272:32)
I/flutter ( 9995): #94 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4653:17)
I/flutter ( 9995): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #97 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #98 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #99 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #100 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #101 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #102 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #104 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #105 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #107 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #108 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #110 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #111 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #112 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #113 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #114 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #118 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #119 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #120 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #121 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #122 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #123 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #124 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #125 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #126 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #127 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #128 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #129 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #130 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #131 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #132 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #133 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #134 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #136 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #137 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #138 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #139 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #140 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #141 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #142 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
Reloaded 4 of 453 libraries in 2,090ms.
I/flutter ( 9995): #143 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #144 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #145 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #146 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #148 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #149 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #150 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #151 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #152 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #153 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #154 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #155 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #156 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #157 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #158 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #159 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #160 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #161 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #162 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #163 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #164 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #165 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #166 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #167 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #168 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #169 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #170 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #171 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #172 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #173 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #174 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #175 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #176 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #177 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #178 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4272:32)
I/flutter ( 9995): #179 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4653:17)
I/flutter ( 9995): #180 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #181 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
I/flutter ( 9995): #182 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #183 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #184 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #185 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #186 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #187 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #188 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #189 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #190 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #191 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #192 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #193 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #194 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #195 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #197 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #198 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #199 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #200 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #201 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #202 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #203 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #205 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #206 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #207 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #208 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #209 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4545:14)
I/flutter ( 9995): #210 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #211 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #212 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #213 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #214 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #215 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #216 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #217 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #218 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #219 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #220 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #221 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #222 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #223 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #224 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #225 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #226 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #227 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #228 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #229 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #230 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #231 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #232 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #233 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #234 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #235 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #236 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #237 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #238 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #239 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #240 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #241 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #242 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #243 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #244 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #245 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #246 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #247 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #248 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #249 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #250 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #251 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #252 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #253 StatelessElement.update (package:flutter/src/widgets/framework.dart:3618:5)
I/flutter ( 9995): #254 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #255 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #256 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #257 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #258 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #259 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #260 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #261 ProxyElement.update (package:flutter/src/widgets/framework.dart:3803:5)
I/flutter ( 9995): #262 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #263 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #264 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #265 StatefulElement.update (package:flutter/src/widgets/framework.dart:3693:5)
I/flutter ( 9995): #266 Element.updateChild (package:flutter/src/widgets/framework.dart:2692:15)
I/flutter ( 9995): #267 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)
I/flutter ( 9995): #268 Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)
I/flutter ( 9995): #269 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2261:33)
I/flutter ( 9995): #270 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:530:20)
I/flutter ( 9995): #271 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:194:5)
I/flutter ( 9995): #272 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 9995): #273 BindingBase&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)
I/flutter ( 9995): #274 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/rendering/binding.dart:280:20)
I/flutter ( 9995): #276 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:367)
I/flutter ( 9995): #277 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:401)
I/flutter ( 9995): #278 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
I/flutter ( 9995): (elided 3 frames from class _AssertionError and package dart:async-patch)
I/flutter ( 9995): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 9995): Another exception was thrown: NoSuchMethodError: The getter 'debugDoingLayout' was called on null.
I/flutter ( 9995): Another exception was thrown: Tried to paint a RenderObject before its compositing bits were updated.
I/flutter ( 9995): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2100 pos 12: '!_needsPaint': is not true.
I/flutter ( 9995): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2100 pos 12: '!_needsPaint': is not true.

> flutter analyze
No issues found!
Ran in 4.7s

Flutter Doctor

[√] Flutter (on Microsoft Windows [Version 10.0.16299.0], locale en-GB, channel alpha)
• Flutter at C:\flutter
• Framework revision 701d534ba9 (3 weeks ago), 2017-09-12 14:01:51 -0700
• Engine revision 31d03de019
• Tools Dart version 1.25.0-dev.11.0

[√] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at C:\android
• Platform android-26, build-tools 26.0.2
• ANDROID_HOME = C:\android
• Java binary at: C:\Program Files\Java\jdk1.8.0_144\bin\java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

[X] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).

[√] IntelliJ IDEA Ultimate Edition (version 2017.2)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35

[√] Connected devices
• ONE A2003 • 729df415 • android-arm • Android 6.0.1 (API 23)

Issue 2:
I am able to trigger a reproducible assertion when adding (or removing) a padding argument to a Container and doing a hot-reload. Note that the assertion happens only during a hot-reload, not during a hot-restart nor when doing the initial flutter run.

I've tried to distill the reproduction case to be as small as possible. Note that the use of a GlobalKey, a GridView, and the BoxConstraints all seem to be relevant.

The failure

$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.7s
Resolving dependencies... 1.8s
Gradle task 'assembleDebug'... 3.8s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 0.8s
Syncing files to device Android SDK built for x86...
D/ (16785): HostConnection::get() New Host Connection established 0xde8a9fc0, tid 16811
D/EGL_emulation(16785): eglMakeCurrent: 0xe1205ca0: ver 2 0 (tinfo 0xcd0cf9e0)
2.5s

🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:46673/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

Initializing hot reload... I/flutter (16785): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (16785): The following assertion was thrown building Container(constraints: BoxConstraints(0.0<=w<=Infinity,
I/flutter (16785): h=200.0)):
I/flutter (16785): 'package:flutter/src/rendering/object.dart': Failed assertion: line 1854 pos 12: '() {
I/flutter (16785): final AbstractNode parent = this.parent;
I/flutter (16785): if (parent is RenderObject)
I/flutter (16785): return parent._needsCompositing;
I/flutter (16785): return true;
I/flutter (16785): }()': is not true.
I/flutter (16785):
I/flutter (16785): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (16785): more information in this error message to help you determine and fix the underlying cause.
I/flutter (16785): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (16785): https://github.com/flutter/flutter/issues/new
I/flutter (16785):
I/flutter (16785): When the exception was thrown, this was the stack:
I/flutter (16785): #2 RenderObject.markNeedsCompositingBitsUpdate (package:flutter/src/rendering/object.dart:1854:12)
I/flutter (16785): #3 RenderObject.attach (package:flutter/src/rendering/object.dart:1294:7)
I/flutter (16785): #4 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin.attach (package:flutter/src/rendering/object.dart:2720:11)
I/flutter (16785): #5 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13)
I/flutter (16785): #6 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1139:11)
I/flutter (16785): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2715:7)
I/flutter (16785): #8 SingleChildRenderObjectElement.insertChildRenderObject (package:flutter/src/widgets/framework.dart:4815:18)
I/flutter (16785): #9 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4659:35)
I/flutter (16785): #10 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2856:13)
I/flutter (16785): #11 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14)
I/flutter (16785): #12 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5)
I/flutter (16785): #13 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2856:13)
I/flutter (16785): #14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14)
I/flutter (16785): #15 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5)
I/flutter (16785): #16 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2856:13)
I/flutter (16785): #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14)
I/flutter (16785): #18 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5)
I/flutter (16785): #19 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2856:13)
I/flutter (16785): #20 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14)
I/flutter (16785): #21 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5)
I/flutter (16785): #22 Element.attachRenderObject.<anonymous closure> (package:flutter/src/widgets/framework.dart:2856:13)
I/flutter (16785): #23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:3716:14)
I/flutter (16785): #24 Element.attachRenderObject (package:flutter/src/widgets/framework.dart:2855:5)
I/flutter (16785): #25 Element._activateWithParent (package:flutter/src/widgets/framework.dart:3003:5)
I/flutter (16785): #26 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2928:18)
I/flutter (16785): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
I/flutter (16785): #28 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
I/flutter (16785): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
I/flutter (16785): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
I/flutter (16785): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #33 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3662:5)
I/flutter (16785): #34 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3657:5)
I/flutter (16785): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
I/flutter (16785): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
I/flutter (16785): #37 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4800:14)
I/flutter (16785): #38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2936:14)
I/flutter (16785): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2739:12)
I/flutter (16785): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #42 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5)
I/flutter (16785): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #46 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5)
I/flutter (16785): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5)
I/flutter (16785): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5)
I/flutter (16785): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #68 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5)
I/flutter (16785): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5)
I/flutter (16785): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #74 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #78 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5)
I/flutter (16785): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #80 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #84 StatefulElement.update (package:flutter/src/widgets/framework.dart:3839:5)
I/flutter (16785): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #88 StatelessElement.update (package:flutter/src/widgets/framework.dart:3742:5)
I/flutter (16785): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #90 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4807:14)
I/flutter (16785): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #94 ProxyElement.update (package:flutter/src/widgets/framework.dart:3951:5)
I/flutter (16785): #95 Element.updateChild (package:flutter/src/widgets/framework.dart:2728:15)
I/flutter (16785): #96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3693:16)
I/flutter (16785): #97 Element.rebuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter (16785): #98 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2272:33)
I/flutter (16785): #99 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20)
I/flutter (16785): #100 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (16785): #101 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (16785): #102 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (16785): #103 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
I/flutter (16785): #105 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (16785): #106 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (16785): #107 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (16785): (elided 3 frames from class _AssertionError and package dart:async)
I/flutter (16785): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/foundation/node.dart': Failed assertion: line 106 pos 12: '_owner != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 1153 pos 12: 'child.parentData != null': is not true.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.

Reloaded 1 of 416 libraries in 674ms.
I/flutter (16785): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3532 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter (16785): Another exception was thrown: NoSuchMethodError: The method '_enableMutationsToDirtySubtrees' was called on null.
I/flutter (16785): Another exception was thrown: NoSuchMethodError: The setter 'offset=' was called on null.
I/flutter (16785): Another exception was thrown: RenderBox was not laid out: RenderPadding#3ac5e NEEDS-PAINT DETACHED
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout ||
I/chatty (16785): uid=10080(com.example.visibilitydetectorsample) Thread-2 identical 2 lines
I/flutter (16785): Another exception was thrown: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1493 pos 18: 'debugDoingThisResize || debugDoingThisLayout ||
I/flutter (16785): Another exception was thrown: NoSuchMethodError: The getter 'offset' was called on null.

Application finished.

The code

import 'package:flutter/material.dart';

void main() {
return runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
}
}

class MyHomePage extends StatelessWidget {
MyHomePage({Key key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Container(
// XXX: Removing (or adding) the following line and doing a hot-reload
// triggers a framework assertion. Hot restart is fine.
padding: const EdgeInsets.all(5),
child: Container(
constraints: const BoxConstraints(minHeight: 200, maxHeight: 200),
child: GridView.count(
key: _myKey,
crossAxisCount: 2,
children: <Widget>[Placeholder(), Placeholder()],
),
),
);
}
}

final _myKey = LabeledGlobalKey('MyKey');

Doctor

$ flutter doctor -v

[✓] Flutter (Channel unknown, v0.10.2-pre.81, on Linux, locale en_US.UTF-8)
• Flutter version 0.10.2-pre.81 at /home/jamesdlin/git/flutter/flutter
• Framework revision 26131d917a (2 weeks ago), 2018-10-23 17:36:25 -0700
• Engine revision 3236b49cea
• Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/jamesdlin/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/jamesdlin/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] Android Studio (version 3.2)
• Android Studio at /home/jamesdlin/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.28.1)
• VS Code at /usr/share/code
• Flutter extension version 2.19.0

[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!