tezvyn:

Describe a strategy for ListView on phones and GridView on tablets

Source: docs.flutter.devintermediate

This tests Flutter adaptive layout skills. Use LayoutBuilder or MediaQuery to read screen width, pick a breakpoint near 600 dp, and return ListView or GridView conditionally.

This tests whether you understand Flutter's responsive layout primitives beyond simple orientation checks. A strong answer names LayoutBuilder or MediaQuery.of(context).size to measure available width, selects a material breakpoint such as 600 dp to distinguish phones from tablets, and conditionally builds a ListView or GridView inside a conditional expression or builder.

Read the original → docs.flutter.dev

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Describe a strategy for ListView on phones and GridView on tablets · Tezvyn