Challenge: Different Widgets for Different Sizes

Apply what we’ve learned about using different widgets depending on the size of the screen.

In this challenge, we’ll start with an application screen that works in portrait mode on smartphones, but doesn’t work in landscape mode. We’ll challenge ourselves to find a solution by using MediaQuery and LayoutBuilder. Run the following code:

Get hands-on with 1200+ tech skills courses.