Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items disappears when scrolling with SliverQuiltedGridDelegate #256

Closed
berkaymazlumlar opened this issue Jun 16, 2022 · 2 comments
Closed

Comments

@berkaymazlumlar
Copy link

berkaymazlumlar commented Jun 16, 2022

I added video about this issue. I realized that it's only happening when childCount is more than 25.

Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-06-16.at.11.52.17.mp4

Here is my code:

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: GridView.custom(
            gridDelegate: SliverQuiltedGridDelegate(
              crossAxisCount: 9,
              repeatPattern: QuiltedGridRepeatPattern.same,
              pattern: const [
                QuiltedGridTile(4, 6),
                QuiltedGridTile(4, 3),
                QuiltedGridTile(4, 3),
                QuiltedGridTile(4, 3),
                QuiltedGridTile(4, 3),
              ],
            ),
            childrenDelegate: SliverChildBuilderDelegate(
              (context, index) => Container(
                color: index % 2 == 0 ? Colors.yellow : Colors.blue,
              ),
              childCount: 30,
            ),
          ),
        ),
      ),
    );
  }
}
@letsar
Copy link
Owner

letsar commented Jul 10, 2022

Related to #232 . It will be fixed today. Sorry for the inconvenience.

@letsar
Copy link
Owner

letsar commented Jul 10, 2022

Fixed in 0.6.2.

@letsar letsar closed this as completed Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants