Adapting a layout to a platform may help us to cater to a bigger audience. But another thing to realize is the massive number of different devices, which poses other challenges to developers.
Developing to support multiple screen sizes is a challenge that will always be present in the life of a developer, so we need mechanisms to adapt to this in the best way. Flutter, again, gives us the tools that we need to understand the ecosystem the app is running so that we can act on it.
To help with this task, the main classes Flutter provides are LayoutBuilder and MediaQuery.