Home > OS >  Flutter horizontal scroll gridview with snap effect
Flutter horizontal scroll gridview with snap effect

Time:01-25

Is it possible to create snap effect in horizontally scroll gridview?

return SafeArea(
      child: SizedBox(
        width: double.infinity,
        height: 420,
        child: GridView(
            scrollDirection: Axis.horizontal,
            gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
                crossAxisCount: 3, childAspectRatio: 0.36),
            children: buildMainMenu()),
      ),
    );

Let me know if there is a way for gridview to having snap effect

CodePudding user response:

You may visit and check this video for snapping enter image description here

  • Related