Show a Widget Depending on the Available Space
Make the UI of the course app responsive by hiding the menu button when it’s not needed.
We'll cover the following...
In this lesson, we’ll learn to add responsiveness to the layout by showing or hiding widgets depending on the available space. We’ll start fixing the UI of the course application we implemented by using MediaQuery
and LayoutBuilder
.
Run the code below and observe the main screen. On a portrait smartphone, nothing is out of place. To navigate to the profile screen, we tap the ...