-1

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

Harsh Sureja
  • 1,052
  • 1
  • 9
  • 22

1 Answers1

0

You can access screen sizes and ratio through MediaQuery

ex : Mediaquery.of(context).size.width gives screen width

Moaid ALRazhy
  • 1,604
  • 1
  • 3
  • 13