Why this Horizontal Listview not Scrolling on flutter Web?

987 views Asked by At

I'd been trying to implement horizontal listview in flutter(Web). The code works fine for android but somehow scroll gets disable on web . Can anyone tell the error or improvement in the below code. I wast something like youtube app's filter widget Just like this

    return Scaffold(
    body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            SizedBox(
              height: MediaQuery.of(context).size.height * 0.1,
              child: SingleChildScrollView(
                scrollDirection: Axis.horizontal,
                child: ListView(
                    scrollDirection: Axis.horizontal,
                    shrinkWrap: true,
                    children: [
                      Card1
                      Card2
                      Card3
                      Card4
 
                    ]),
              ),....closing brackets
0

There are 0 answers