i want to set gridView in my List. And all gridView's child set according to screen size and aspectRatio.So how can i set aspecRation dynamically according to screen size.
Thank You in Advance
i want to set gridView in my List. And all gridView's child set according to screen size and aspectRatio.So how can i set aspecRation dynamically according to screen size.
Thank You in Advance
You can access screen sizes and ratio through MediaQuery
ex : Mediaquery.of(context).size.width
gives screen width