Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StaggeredGridView not scrolling after updating Flutter

I updated my flutter and dart package last night and now StaggeredGridView which was scrolling perfectly before is giving me an error:

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type 'SliverHitTestResult' is not a subtype of type 'BoxHitTestResult'
like image 436
Munish Thakur Avatar asked May 12 '19 12:05

Munish Thakur


2 Answers

i had the same problem , and i solved upgrading the version in pubspeck.yaml to flutter_staggered_grid_view 0.3.0

like image 187
Luis Alfredo Aguilar Avatar answered Oct 02 '22 13:10

Luis Alfredo Aguilar


The BoxHitTestResult exception was fixed in new version of flutter_staggered_grid_view 0.3.0

You can check changelog here

If you have same issue after the upgrade,

run flutter clean in terminal and then run again.

like image 27
Kavin-K Avatar answered Oct 02 '22 13:10

Kavin-K