瀑布流不能上下滑动
来源:16-6 实现旅拍卡片布局-1
慕圣0124064
2020-08-19
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: type ‘SliverHitTestResult’ is not a subtype of type ‘BoxHitTestResult’
#0 RenderSliverVariableSizeBoxAdaptor.hitTestChildren (package:flutter_staggered_grid_view/src/rendering/sliver_variable_size_box_adaptor.dart:380:27)
#1 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#2 SliverHitTestResult.addWithAxisOffset (package:flutter/src/rendering/sliver.dart:864:31)
#3 RenderSliverEdgeInsetsPadding.hitTestChildren (package:flutter/src/rendering/sliver_padding.dart:221:14)
#4 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#5 RenderViewportBase.hitTestChildren. (package:flutter/src/rendering/viewport.dart:645:24)
#6 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#7 BoxHitTestResult.addWithPaintTransform (package:flutter/src/rendering/box.dart:736:12)
#8 RenderViewportBase.hitTestChildren (package:flutter/src/rendering/viewport.dart:641:33)
#9 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#10 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#11 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#12 RenderIgnorePointer.hitTest (package:flutter/src/rendering/proxy_box.dart:3121:31)
#13 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#14 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#15 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#16 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#17 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#18 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#19 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#20 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#21 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#22 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#23 RenderBoxContainerDefaultsMixin.defaultHitTestChildren. (package:flutter/src/rendering/box.dart:2495:24)
#24 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#25 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#26 RenderBoxContainerDefaultsMixin.defaultHitTestChildren (package:flutter/src/rendering/box.dart:2490:33)
#27 RenderCustomMultiChildLayoutBox.hitTestChildren (package:flutter/src/rendering/custom_layout.dart:409:12)
#28 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#29 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#30 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#31 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#32 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#33 RenderPhysicalModel.hitTest (package:flutter/src/rendering/proxy_box.dart:1767:18)
#34 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#35 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#36 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#37 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#38 RenderSliverHelpers.hitTestBoxChild. (package:flutter/src/rendering/sliver.dart:1679:22)
#39 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#40 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#41 RenderSliverHelpers.hitTestBoxChild (package:flutter/src/rendering/sliver.dart:1675:19)
#42 RenderSliverMultiBoxAdaptor.hitTestChildren (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:564:11)
#43 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#44 SliverHitTestResult.addWithAxisOffset (package:flutter/src/rendering/sliver.dart:864:31)
#45 RenderSliverEdgeInsetsPadding.hitTestChildren (package:flutter/src/rendering/sliver_padding.dart:221:14)
#46 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#47 RenderViewportBase.hitTestChildren. (package:flutter/src/rendering/viewport.dart:645:24)
#48 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#49 BoxHitTestResult.addWithPaintTransform (package:flutter/src/rendering/box.dart:736:12)
#50 RenderViewportBase.hitTestChildren (package:flutter/src/rendering/viewport.dart:641:33)
#51 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#52 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#53 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#54 RenderIgnorePointer.hitTest (package:flutter/src/rendering/proxy_box.dart:3121:31)
#55 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#56 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#57 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#58 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#59 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#60 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#61 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#62 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#63 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#64 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#65 RenderBoxContainerDefaultsMixin.defaultHitTestChildren. (package:flutter/src/rendering/box.dart:2495:24)
#66 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#67 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#68 RenderBoxContainerDefaultsMixin.defaultHitTestChildren (package:flutter/src/rendering/box.dart:2490:33)
#69 RenderFlex.hitTestChildren (package:flutter/src/rendering/flex.dart:944:12)
#70 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#71 RenderBoxContainerDefaultsMixin.defaultHitTestChildren. (package:flutter/src/rendering/box.dart:2495:24)
#72 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#73 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#74 RenderBoxContainerDefaultsMixin.defaultHitTestChildren (package:flutter/src/rendering/box.dart:2490:33)
#75 RenderCustomMultiChildLayoutBox.hitTestChildren (package:flutter/src/rendering/custom_layout.dart:409:12)
#76 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#77 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#78 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#79 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#80 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#81 RenderPhysicalModel.hitTest (package:flutter/src/rendering/proxy_box.dart:1767:18)
#82 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#83 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#84 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#85 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#86 RenderSliverHelpers.hitTestBoxChild. (package:flutter/src/rendering/sliver.dart:1679:22)
#87 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#88 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#89 RenderSliverHelpers.hitTestBoxChild (package:flutter/src/rendering/sliver.dart:1675:19)
#90 RenderSliverMultiBoxAdaptor.hitTestChildren (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:564:11)
#91 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#92 SliverHitTestResult.addWithAxisOffset (package:flutter/src/rendering/sliver.dart:864:31)
#93 RenderSliverEdgeInsetsPadding.hitTestChildren (package:flutter/src/rendering/sliver_padding.dart:221:14)
#94 RenderSliver.hitTest (package:flutter/src/rendering/sliver.dart:1294:11)
#95 RenderViewportBase.hitTestChildren. (package:flutter/src/rendering/viewport.dart:645:24)
#96 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#97 BoxHitTestResult.addWithPaintTransform (package:flutter/src/rendering/box.dart:736:12)
#98 RenderViewportBase.hitTestChildren (package:flutter/src/rendering/viewport.dart:641:33)
#99 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#100 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#101 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#102 RenderIgnorePointer.hitTest (package:flutter/src/rendering/proxy_box.dart:3121:31)
#103 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#104 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#105 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#106 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#107 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#108 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#109 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#110 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#111 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#112 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#113 RenderBoxContainerDefaultsMixin.defaultHitTestChildren. (package:flutter/src/rendering/box.dart:2495:24)
#114 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#115 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#116 RenderBoxContainerDefaultsMixin.defaultHitTestChildren (package:flutter/src/rendering/box.dart:2490:33)
#117 RenderCustomMultiChildLayoutBox.hitTestChildren (package:flutter/src/rendering/custom_layout.dart:409:12)
#118 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#119 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#120 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#121 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#122 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#123 RenderPhysicalModel.hitTest (package:flutter/src/rendering/proxy_box.dart:1767:18)
#124 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#125 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#126 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#127 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#128 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#129 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#130 RenderIgnorePointer.hitTest (package:flutter/src/rendering/proxy_box.dart:3121:31)
#131 RenderBoxContainerDefaultsMixin.defaultHitTestChildren. (package:flutter/src/rendering/box.dart:2495:24)
#132 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#133 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#134 RenderBoxContainerDefaultsMixin.defaultHitTestChildren (package:flutter/src/rendering/box.dart:2490:33)
#135 RenderStack.hitTestChildren (package:flutter/src/rendering/stack.dart:593:12)
#136 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#137 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#138 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#139 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#140 RenderFractionalTranslation.hitTestChildren. (package:flutter/src/rendering/proxy_box.dart:2505:22)
#141 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#142 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#143 RenderFractionalTranslation.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:2499:19)
#144 RenderFractionalTranslation.hitTest (package:flutter/src/rendering/proxy_box.dart:2485:12)
#145 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#146 RenderFractionalTranslation.hitTestChildren. (package:flutter/src/rendering/proxy_box.dart:2505:22)
#147 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#148 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#149 RenderFractionalTranslation.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:2499:19)
#150 RenderFractionalTranslation.hitTest (package:flutter/src/rendering/proxy_box.dart:2485:12)
#151 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#152 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#153 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#154 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#155 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#156 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#157 RenderOffstage.hitTest (package:flutter/src/rendering/proxy_box.dart:3231:31)
#158 _RenderTheatre.hitTestChildren. (package:flutter/src/widgets/overlay.dart:722:24)
#159 BoxHitTestResult.addWithRawTransform (package:flutter/src/rendering/box.dart:808:31)
#160 BoxHitTestResult.addWithPaintOffset (package:flutter/src/rendering/box.dart:765:12)
#161 _RenderTheatre.hitTestChildren (package:flutter/src/widgets/overlay.dart:717:33)
#162 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#163 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#164 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#165 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#166 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#167 RenderAbsorbPointer.hitTest (package:flutter/src/rendering/proxy_box.dart:3329:17)
#168 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#169 RenderProxyBoxWithHitTestBehavior.hitTest (package:flutter/src/rendering/proxy_box.dart:167:19)
#170 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#171 RenderCustomPaint.hitTestChildren (package:flutter/src/rendering/custom_paint.dart:508:18)
#172 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#173 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#174 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#175 RenderProxyBoxMixin.hitTestChildren (package:flutter/src/rendering/proxy_box.dart:120:19)
#176 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2142:11)
#177 RenderView.hitTest (package:flutter/src/rendering/view.dart:187:13)
#178 RendererBinding.hitTest (package:flutter/src/rendering/binding.dart:428:16)
#179 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:128:7)
#180 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#181 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#182 _rootRunUnary (dart:async/zone.dart:1196:13)
#183 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#184 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#185 _invoke1 (dart:ui/hooks.dart:275:10)
#186 _dispatchPointerDataPacket (dart:ui/hooks.dart:184:5)
2回答
-
慕圣0124064
提问者
2020-08-20
就是这节课之后 瀑布流不能上下滑动 每一个卡片也无法跳转详情 已经将老师git的travel_tab_page.dart 中的代码复制粘贴后还是不能滑动和点击跳转
012020-08-27 -
CrazyCodeBoy
2020-08-20
代码设置的问题对照下这块课程源码检查下你的实现看是否有出入的地方呢:https://git.imooc.com/coding-321/flutter_trip/src/master/lib/pages
00