Loading topic
StatelessWidget and StatefulWidget classes. It also assumes you have used Row, Column, Scaffold and ListView, and can run a Flutter app on a device, emulator or desktop target. Every responsive technique in the later chapters rests on the layout rules b6 min readStatelessWidget and StatefulWidget classes, use Dart 3 syntax, and know how Scaffold, Row and Column work. It also assumes you have read the earlier chapter on constraints, where parents pass constraints down and children report sizes up. Here you learn w6 min readStatelessWidget and StatefulWidget, and know that constraints flow down the tree and sizes flow up. It also assumes you know how MediaQuery.sizeOf reports the window size. You will use LayoutBuilder to make 5 min readStatelessWidget and StatefulWidget, and use Row, Column, Scaffold and ListView. It also assumes you have read about MediaQuery and LayoutBuilder. Here you will turn raw widths into a small set of na5 min readListView, know what a LayoutBuilder does, and have the windowSizeFor helper from the breakpoints chapter (it is repeated below so the snippets run). It also5 min readStatelessWidget and StatefulWidget, read Theme.of(context), and write a basic widget test. The earlier chapters changed the layout based on available space. Here you change how widgets look and behave based on the platform they run on.4 min readStatefulWidget, you know Scaffold and ListView, and you have run a Flutter app on a desktop or web target. Window size is one part of adapting a layout. The other part is how the user points at things. A phone user taps with a thumb. A lapto5 min readtestWidgets tests with flutter_test, and that you have the windowSizeFor helper, AdaptiveBody and AdaptiveShell from earlier chapters. The examples import them from package:my_app/adaptive.dart. Replace my_app with your package name and adjust t4 min readMediaQuery.sizeOf and LayoutBuilder, and the 600 and 840 logical pixel breakpoints. Here the focus is on the mistakes that show up most of5 min readMediaQuery, LayoutBuilder, window-size classes, and the list-detail pattern from earlier chapters. The chapter also assumes you can run a Flutter app on an Android emulat5 min read