StaggeredGridView not scrolling after updating Flutter
Asked Answered
E

4

10

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'
Expansion answered 12/5, 2019 at 12:5 Comment(4)
github.com/letsar/flutter_staggered_grid_view/issues/49Coverlet
switch your channel to stable.Laroche
Thanks, But I am looking for an answer as well.Expansion
Try upgrading the package version to flutter_staggered_grid_view: "^0.3.0"Radiotelegraph
G
8

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

Gaultiero answered 23/8, 2019 at 21:13 Comment(1)
this is the solutionLajuanalake
M
4

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.

Marv answered 14/7, 2019 at 6:47 Comment(0)
E
1

@Yamim comment: "switch your channel to stable" worked.

Here is the command you can use:

flutter channel stable

Other Channels:

$ flutter channel
Flutter channels:
  * stable
    beta
    dev
    master

For more information about channels you can refer: https://github.com/flutter/flutter/wiki/Flutter-build-release-channels

Expansion answered 14/5, 2019 at 9:4 Comment(0)
M
0

This issue is resolved in the upgraded package No need to modify the code just upgrade the package.

Add the following dependencies to your pubspec.yaml and restart the application. It works well.

flutter_staggered_grid_view: 0.3.0
Muniment answered 22/7, 2022 at 22:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.