What is the disadvantage (if any) of using MediaQueryData.fromWindow as opposed to MediaQuery.of(context)?

前端 未结 0 1511
再見小時候
再見小時候 2020-12-15 15:18

As far as I can tell, there are two ways to obtain an instance of MediaQueryData:

  1. The popular way: calling MediaQuery.of(context) from inside a build method

相关标签:
回答
  • 消灭零回复
提交回复
热议问题