flutter_hotspot
flutter_hotspot copied to clipboard
Error thrown when you set state
@lukepighetti just added your implementation on flutter hotspot to an app im building, pretty cool but it throws this error anytime setstate is updated but the hotspot has already been completed and dismissed. been ticking around to see if i can fix it but cant seem solve it
Reloaded 1 of 3333 libraries in 1,016ms.
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following RangeError was thrown building HotspotProvider(dirty, state:
HotspotProviderState#4ca29):
RangeError (index): Invalid value: Only valid value is 0: 2
The relevant error-causing widget was:
HotspotProvider
HotspotProvider:.../lib/app.dart:115:28
When the exception was thrown, this was the stack:
#0 List.[] (dart:core-patch/growable_array.dart:264:36)
#1 HotspotProviderState.build (package:hotspot/src/hotspot_provider.dart:245:67)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:5409:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5297:15)
#4 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#5 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#6 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#7 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#9 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#10 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#11 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#13 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#14 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#15 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#16 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#17 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#18 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#19 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#20 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#21 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#22 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#23 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#25 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#26 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#27 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#28 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#29 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#30 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#31 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#33 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#34 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#35 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#37 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#38 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#39 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#41 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#42 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#43 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#45 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#46 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#47 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#49 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#50 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#51 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#52 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#53 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#54 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#55 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#56 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#57 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#58 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#59 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#60 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#61 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#62 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#63 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#64 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#65 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#67 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#68 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#69 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#71 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#72 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#73 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#75 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#76 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#77 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#79 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#80 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#81 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#83 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#84 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#85 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#87 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#88 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#89 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#90 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#91 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#93 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#94 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#95 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#96 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#97 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#98 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#99 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#100 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#101 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#102 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#103 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#104 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#105 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#106 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#107 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#108 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#109 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#110 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#111 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#112 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#113 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#114 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#115 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#116 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#117 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#118 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#119 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#120 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#121 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#122 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#123 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#124 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#125 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#126 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#127 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#128 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#129 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#130 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#131 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#132 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#133 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#134 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#135 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#136 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#137 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#138 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#139 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#140 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#141 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#142 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#143 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#144 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#145 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#146 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#147 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#148 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#149 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#150 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#151 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#152 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#153 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#154 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#155 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#156 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#157 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#158 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#159 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#160 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#161 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#162 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#163 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#164 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#165 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#166 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#167 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#168 StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#169 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#170 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#171 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#172 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#173 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#174 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#175 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#176 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#177 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#178 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#179 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#180 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#181 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#182 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#183 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#184 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#185 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#186 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#187 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#188 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#189 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#190 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#191 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#192 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#193 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#194 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#195 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#196 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#197 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#198 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#199 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#200 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#201 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#202 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#203 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#204 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#205 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#206 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#207 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#208 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#209 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#210 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#211 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#212 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#213 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#214 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#215 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#216 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#217 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#218 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#219 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#220 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#221 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#222 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#223 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#224 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#225 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#226 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#227 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#228 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#229 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#230 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#231 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#232 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#233 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#234 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#235 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#236 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#237 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#238 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#239 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#240 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#241 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#242 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#243 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#244 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#245 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#246 ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#247 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#248 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#249 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#250 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#251 StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#252 Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#253 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#254 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#255 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#256 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2779:19)
#257 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:916:21)
#258 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:360:5)
#259 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#260 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1227:9)
#261 SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:952:7)
#265 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 3 frames from class _Timer and dart:async-patch)
════════════════════════════════════════════════════════════════════════════════════════════════════
D/EGL_emulation( 8136): app_time_stats: avg=7746.76ms min=0.89ms max=92872.28ms count=12