how to create a row of scrollable text boxes or widgets in flutter inside a ListView?

前端 未结 6 1062
悲哀的现实
悲哀的现实 2021-01-01 11:46

1.Please, can someone tell me how to create a row of text boxes that are scrollable to left or right in flutter inside a ListView. I can see that I am trying to define an in

6条回答
  •  囚心锁ツ
    2021-01-01 11:50

    For a row/column to scroll you can simply use the SingleChildScrollView feature and mention the direction as required.

    SingleChildScrollView(
        scrollDirection: Axis.horizontal,
        child: Row(
            children: [
                //provide all the things u want to horizontally scroll here
            ]
        ),
    );
    

提交回复
热议问题