가을기 Workspace

[플러터] - 가로 GridView 본문

개발/개인앱

[플러터] - 가로 GridView

가을기_ 2021. 7. 22. 00:50

GridView(
     scrollDirection: Axis.horizontal,
     gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent(
                maxCrossAxisExtent: 200,
                childAspectRatio: 3 / 2,
                crossAxisSpacing: 20,
                mainAxisSpacing: 20
     ),
     children: [
               // Some widgets
     ],
),

https://www.kindacode.com/article/how-to-implement-a-horizontal-gridview-in-flutter/

Comments