0

i'm running issue with Flutter, i need to create a layout like capture bellow using GridView because data come from api.

enter image description here

With Kotlin I can do it very well with the GridLayoutManager

val layoutManager = binding.recyclerView.layoutManager as GridLayoutManager
layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() {
    override fun getSpanSize(position: Int): Int {
        return if (position == 0) {
            3
        } else {
            1
        }
    }
}

but how to do the same thing on flutter?

logancodemaker
  • 582
  • 3
  • 14

0 Answers0