close

How To Create horizontal ListView in Flutter

Hello Guys How are you all ? hope you all are fine. In this tutorial we are going to learn How To Create horizontal ListView in Flutter.

To use ListView.builder as horizontal ListView you have to set scrollDirection property of the ListView widget to Axis.horizontal.

Sometime you might have to create a list that scrolls rather than vertically. So Here is ListView widget will help you. Use the standard ListView constructor, passing in a horizontal scrollDirection, which overrides the default vertical direction.

So Without Wasting Your Time Lets start this tutorial.

Example To Create horizontal ListView in Flutter

  1. First Of All Create Listview.
  2. Now Set scrollDirection to Axis. Horizontal.
  3. That’s it. Now You Can use any children that you want in Horizontal Direction.
  4. I am Giving my Source Code Here.
  5. import ‘package:flutter/material.dart’;
How To Create horizontal ListView in Flutter
How to create horizontle listview in flutter ?

To use ListView.builder as horizontal Listview you have to set scrollDirection Property of the listView Widget to Axis.horizontal.

So Guys, Do You Like Our Article ? Please Comment below if any Queries you have. So That’s it for this article, hope you like this article. Thank you.

also read How to Create TabBar in Flutter Complete Guide To Make TabBar

1 thought on “How To Create horizontal ListView in Flutter”

Leave a Comment

%d bloggers like this: