i'm running issue with Flutter, i need to create a layout like capture bellow using GridView because data come from api.
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?