Comments (25)
here is work for me:
- uprgade flutter_staggered_grid_view to 0.3.0
- if the problem still persist, delete ~/.pub-cache/hosted/pub.dartlang.org folder
- run $ flutter pub get
- your flutter_staggered_grid_view should work by now
from flutter_staggered_grid_view.
Thanks, published in v0.3.0
from flutter_staggered_grid_view.
I've fixed it for my scenario, though I'm not sure if it will work for everyone. In sliver_variable_size_box_adaptor.dart
change hitTestChildren
method to:
bool hitTestChildren(HitTestResult result,
{@required double mainAxisPosition, @required double crossAxisPosition}) {
for (var child in children) {
if (hitTestBoxChild(BoxHitTestResult.wrap(result), child,
mainAxisPosition: mainAxisPosition,
crossAxisPosition: crossAxisPosition)) return true;
}
return false;
}
The important bit is the change to call BoxHitTestResult.wrap(result)
in the call to hitTestBoxChild
instead of just passing result
.
from flutter_staggered_grid_view.
After upgrade to 0.3.0 on Flutter 1.7.8. Running
flutter clean
works for me.
This worked for me
from flutter_staggered_grid_view.
After upgrade to 0.3.0 on Flutter 1.7.8. Running flutter clean
works for me.
from flutter_staggered_grid_view.
update flutter_staggered_grid_view: ^0.3.0,it is ok!
from flutter_staggered_grid_view.
Same here using StaggeredGridView inside a NestedScrollView when trying to scroll.
from flutter_staggered_grid_view.
It's something to do with the hitTestChildren
method in SliverVariableSizeBoxAdapter
. If I revert it to just call super.hitTestChildren
then scrolling works, but onTap
on my child items never fires, so there's more to it than that :)
from flutter_staggered_grid_view.
This solution no longer works since flutter version 1.7.
from flutter_staggered_grid_view.
facing the same issue with Flutter 1.7.8+hotfix.3 and flutter_staggered_grid_view 0.3.0.
Please provide with a fix..
from flutter_staggered_grid_view.
above works!
from flutter_staggered_grid_view.
Also having this problem.
from flutter_staggered_grid_view.
Also having this issue.
from flutter_staggered_grid_view.
Same problem.
from flutter_staggered_grid_view.
same problem
from flutter_staggered_grid_view.
I've fixed it for my scenario, though I'm not sure if it will work for everyone. In
sliver_variable_size_box_adaptor.dart
changehitTestChildren
method to:bool hitTestChildren(HitTestResult result, {@required double mainAxisPosition, @required double crossAxisPosition}) { for (var child in children) { if (hitTestBoxChild(BoxHitTestResult.wrap(result), child, mainAxisPosition: mainAxisPosition, crossAxisPosition: crossAxisPosition)) return true; } return false; }
The important bit is the change to call
BoxHitTestResult.wrap(result)
in the call tohitTestBoxChild
instead of just passingresult
.
This Fixed the problem for me..
from flutter_staggered_grid_view.
Any news if the PR fixing this is going to get merged in? I'm keen to use this package but until this is fixed I will have to stick with my own implementation which isn't as clean or responsive as this package.
from flutter_staggered_grid_view.
It's really helpful,I have fixed this problem with overriding the hitTestChildren methodใ
Thank you!
ps: StaggerGridView inside NestedScrollView
from flutter_staggered_grid_view.
Upgraded flutter to 1.7 v, Now flutter_staggered_grid_view package is throwing this error "Unhandled Exception: type 'SliverHitTestResult' is not a subtype of type 'BoxHitTestResult'"
Upgraded package to 0.3.0 from 0.2.7, The error remains the same.
Requesting the author to provide a solution.
from flutter_staggered_grid_view.
@dereklakin 's solution works like a charm for me in Flutter 1.7.8+hotfix.3 and last updated Staggered package
from flutter_staggered_grid_view.
update flutter_staggered_grid_view: ^0.3.0,it is ok!
its is working, nice thankyou !
from flutter_staggered_grid_view.
After upgrade to 0.3.0. Running flutter clean works for me. must run flutter clean
from flutter_staggered_grid_view.
here is work for me:
- uprgade flutter_staggered_grid_view to 0.3.0
- if the problem still persist, delete ~/.pub-cache/hosted/pub.dartlang.org folder
- run $ flutter pub get
- your flutter_staggered_grid_view should work by now
thaaaaaaaaaaaaaank you so much maaan my head burned trying to fix it and now all is working i just updated it to 0.3.0 thaaaaaaaaaaank you maaaaan
from flutter_staggered_grid_view.
here is work for me:
1. uprgade flutter_staggered_grid_view to 0.3.0 2. if the problem still persist, delete ~/.pub-cache/hosted/pub.dartlang.org folder 3. run $ flutter pub get 4. your flutter_staggered_grid_view should work by now
thank you!
from flutter_staggered_grid_view.
Ya, it's work for me after upgrade 0.3.0
from flutter_staggered_grid_view.
Related Issues (20)
- Document SliverAlignedGrid and SliverMasonryGrid
- Wrap like effect with fixed width and height for children
- SliverMasonryGrid.extent scroll up jank
- readme, examples out of date
- BorderRadius Issue HOT 1
- Rename `examples` back to `example`
- Scroll to specify wiget ?
- scrolling issues with two SliverMasonryGrid.count in the same CustomScrollView HOT 4
- staggered grid view rendering issue
- Masonry Separator? HOT 2
- Scrolling issue with two SliverMasonryGrid in CustomScrollView HOT 13
- `MasonryGridView.custom` doesn't handle `findChildIndexCallback` properly HOT 1
- Images are getting chopped,if we make the image to cover the tile.
- Tile alignment when first row is not filled.
- Can't use `StaggeredGrid.custom` since `StaggeredGridDelegate` is not accessible through library `flutter_staggered_grid_view`.
- Null error when scrolling back to the top
- Scroll position not preserved when switching tabs HOT 3
- Updated layout information required for RenderIndexedSemantics#7583c NEEDS-LAYOUT to calculate semantics.
- Null check operator used on a null value
- MasonryGridView not scrollable to end HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_staggered_grid_view.