Loading topic
StatelessWidget and StatefulWidget classes in Dart, you know what MaterialApp and Scaffold do, and you have used Navigator and BuildContext. It covers the root of a Cupertino app: what CupertinoApp sets up, how CupertinoThemeData controls appearance4 min readStatelessWidget and StatefulWidget classes. It also assumes you know MaterialApp with Scaffold, and that you have used Navigator.push and BuildContext. Here you will build iOS-style screens: how the two core widgets cooperate, how the bar behaves during5 min readStatelessWidget and StatefulWidget classes and call setState. It also assumes you have already built a screen with CupertinoApp, CupertinoPageScaffold and CupertinoNavigationBar. Here you will learn how the four most common Cupertino input controls work4 min readCupertinoTabScaffold keeps a separate navigation stack for each tab. It assumes you know Navigator.push and pop, BuildContext, StatefulWidget, and the CupertinoApp and `Cupertin5 min readNavigator.pop, and know why BuildContext matters after an await. It also assumes you have a CupertinoApp or MaterialApp running, as in the earlier chapters.5 min readStatefulWidget, call setState, and open routes with Navigator. It also assumes you have seen `Cupertin4 min readCupertinoApp screen with CupertinoPageScaffold, as in the earlier chapters, and that you know BuildContext and MediaQuery at a basic level. It covers how Cupertino colors change between light and dark mode, where that change happens, and the cases w4 min readMaterialApp is often the better base, because it works with Material 3, Scaffold, and the wider package ecosystem. Individual controls such as a switch, a slider, or an action sheet can still look native to iOS. This chapter expl4 min readStatelessWidget and StatefulWidget, that you know MaterialApp and Scaffold, and that you have seen BuildContext and Theme.of(context). You don't need to know the Cupertino widgets in detail yet. Here you learn how a Flutter app decides whic5 min readStatefulWidgets with setState, you know MaterialApp and Scaffold, and you have used Navigator and BuildContext. It also assumes you know how to read the platform with Theme.of(context).platform from the earlier chapter on platform detection.4 min readStatelessWidget and StatefulWidget, BuildContext, and the basics of MaterialApp. You should also have read the earlier chapters on Cupertino controls and on detecting the platform with Theme.of(context).platform. Here you will wrap a platform choice in one reu5 min readListView, wrap an app in MaterialApp or CupertinoApp, and read Theme.of(context).platform as covered in the earlier chapters. Scrolling is the part of platform adaptation that most users feel but rarely notice. Flutter handles most of it for you. The rest5 min readtestWidgets, pumpWidget, find, expect). It also assumes you have read the chapters on detecting the platform and on building your own adaptive widget. Here you will learn how to make a test run as iOS, Android, or another platfo4 min readMaterialApp and Scaffold, and that you have seen CupertinoApp, the .adaptive constructors and Theme.of(context).platform. Earlier chapters showed how to adapt. This chapter covers whether you should.6 min read