Closed algokun closed 5 years ago
Thanks for reporting and detailed instructions.
The fix is now published in notus 0.1.4
, just upgrade your dependencies and you should be good to go.
String string = [{"insert":"1111111111\n"},{"insert":"1111111111","attributes":{"b":true}},{"insert":"\n"},{"insert":"11111111111","attributes":{"i":true}},{"insert":"\n"},{"insert":"11111111111","attributes":{"b":true,"i":true}},{"insert":"\n1111111111"},{"insert":"\n","attributes":{"heading":1}},{"insert":"1111111111"},{"insert":"\n","attributes":{"heading":2}},{"insert":"1111111111"},{"insert":"\n","attributes":{"heading":3}},{"insert":"1233"},{"insert":"\n","attributes":{"block":"ul"}},{"insert":"234"},{"insert":"\n","attributes":{"block":"ol"}},{"insert":"hsjsj"},{"insert":"\n","attributes":{"block":"ol"}},{"insert":"hello"},{"insert":"\n","attributes":{"block":"quote"}},{"insert":"hello"},{"insert":"\n","attributes":{"block":"code"}},{"insert":"hhelo"},{"insert":"\n","attributes":{"block":"code"}},{"insert":"world"},{"insert":"\n","attributes":{"block":"code"}},{"insert":"home"},{"insert":"\n","attributes":{"block":"code"}},{"insert":"\n\n"}]
ZefyrView(
document: NotusDocument.fromJson(
jsonDecode(string),
),
),
zefyr: ^0.10.0
notus: ^0.1.5
Please note that I had run flutter pub upgrade
before and after adding notus
dependency.
I/flutter ( 2913): The following NoSuchMethodError was thrown building ZefyrLine(dirty, dependencies:
I/flutter ( 2913): [ZefyrScopeAccess, _InheritedTheme, _LocalizationsScope-[GlobalKey#0bfae]], state:
I/flutter ( 2913): _ZefyrLineState#270f9):
I/flutter ( 2913): The getter 'type' was called on null.
I/flutter ( 2913): Receiver: null
I/flutter ( 2913): Tried calling: type
I/flutter ( 2913):
I/flutter ( 2913): The relevant error-causing widget was:
I/flutter ( 2913): ZefyrLine
I/flutter ( 2913): file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.10.0/lib/src/widgets/view.dart:89:16
I/flutter ( 2913):
I/flutter ( 2913): When the exception was thrown, this was the stack:
I/flutter ( 2913): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
I/flutter ( 2913): #1 _ZefyrLineState.buildEmbed (package:zefyr/src/widgets/common.dart:155:15)
I/flutter ( 2913): #2 _ZefyrLineState.build (package:zefyr/src/widgets/common.dart:50:17)
I/flutter ( 2913): #3 StatefulElement.build (package:flutter/src/widgets/framework.dart:4334:27)
I/flutter ( 2913): #4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4223:15)
I/flutter ( 2913): #5 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #6 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #8 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5161:32)
I/flutter ( 2913): #9 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5561:17)
I/flutter ( 2913): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #13 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #17 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #19 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #20 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #21 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #23 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5161:32)
I/flutter ( 2913): #24 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5561:17)
I/flutter ( 2913): #25 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #26 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #28 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5161:32)
I/flutter ( 2913): #29 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5561:17)
I/flutter ( 2913): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #31 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #37 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #41 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #45 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #47 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #53 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #56 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #57 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #59 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #60 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #61 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #65 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #67 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1288:36)
I/flutter ( 2913): #68 SliverMultiBoxAdaptorElement.performRebuild.processElement (package:flutter/src/widgets/sliver.dart:1220:34)
I/flutter ( 2913): #69 Iterable.forEach (dart:core/iterable.dart:279:30)
I/flutter ( 2913): #70 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:1246:24)
I/flutter ( 2913): #71 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:1191:7)
I/flutter ( 2913): #72 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #73 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #74 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #75 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #76 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #77 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #79 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5161:32)
I/flutter ( 2913): #80 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5561:17)
I/flutter ( 2913): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #82 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #83 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #84 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #86 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #87 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #88 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #89 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #90 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #92 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #93 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #94 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #95 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #96 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #98 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #99 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #100 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #101 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #102 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #104 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #105 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #106 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #107 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #108 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #110 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #111 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #112 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #113 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #114 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #118 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #119 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #120 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #121 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #122 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #123 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #124 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #125 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #126 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #127 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #128 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #129 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #130 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #131 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #132 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #133 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #134 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #136 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #137 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #138 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): App main stream builder Snapshot connection state:- ConnectionState.waiting
I/flutter ( 2913): #139 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #140 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #141 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #142 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #143 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #144 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #145 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #146 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #148 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5161:32)
I/flutter ( 2913): #149 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5561:17)
I/flutter ( 2913): #150 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #151 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #152 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #153 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #154 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #155 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #156 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #157 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #158 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #159 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #160 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #161 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #162 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #163 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #164 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #165 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #166 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #167 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #168 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #169 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #170 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #171 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #172 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #173 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #174 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #175 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #176 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #177 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #178 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #179 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #180 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #181 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #182 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #183 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #184 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #185 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #186 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #187 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #188 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #189 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #190 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #191 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #192 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #193 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #194 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #195 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #197 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #198 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #199 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #200 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #201 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #202 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #203 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #205 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #206 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #207 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #208 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #209 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #210 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #211 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #212 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #213 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #214 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #215 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #216 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #217 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #218 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #219 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #220 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #221 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #222 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #223 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #224 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #225 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #226 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #227 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #228 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #229 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #230 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #231 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #232 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #233 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #234 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #235 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #236 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #237 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #238 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #239 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #240 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:94:11)
I/flutter ( 2913): #241 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #242 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #243 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #244 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #245 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #246 StatefulElement.update (package:flutter/src/widgets/framework.dart:4413:5)
I/flutter ( 2913): #247 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #248 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #249 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #250 StatelessElement.update (package:flutter/src/widgets/framework.dart:4298:5)
I/flutter ( 2913): #251 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #252 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5452:14)
I/flutter ( 2913): #253 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #254 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #255 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #256 ProxyElement.update (package:flutter/src/widgets/framework.dart:4557:5)
I/flutter ( 2913): #257 Element.updateChild (package:flutter/src/widgets/framework.dart:2977:15)
I/flutter ( 2913): #258 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter ( 2913): #259 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter ( 2913): #260 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2432:33)
I/flutter ( 2913): #261 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:773:20)
I/flutter ( 2913): #262 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
I/flutter ( 2913): #263 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
I/flutter ( 2913): #264 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9)
I/flutter ( 2913): #265 SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:850:7)
I/flutter ( 2913): #267 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
I/flutter ( 2913): #268 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
I/flutter ( 2913): #269 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
I/flutter ( 2913): (elided one frame from package dart:async-patch)
I/flutter ( 2913): ```
Steps to Reproduce
When i select an image and press the line button , the error occured
The error occured at 'package:notus/src/document/line.dart' line 28
bool get hasEmbed { if (childCount == 1) { return children.single is EmbedNode; } assert (children.every((child) => child is TextNode)); return false; }
The error is failed assertion
Logs