Loading topic
StatelessWidget from a StatefulWidget. It also assumes you have run an app with flutter run or from an IDE. Here you will look at what flutter run does, what stays alive while you work, and how an edit travels fr7 min readState object lives, and what a rebuild does. It assumes you can write basic Dart, build simple Flutter widgets, tell StatelessWidget from StatefulWidget, and run an app with flutter run or from an IDE. L7 min readStatelessWidget from a StatefulWidget. It also assumes you can start an app with flutter run. Earlier chapters covered debug mode, the Dart VM, and how widgets and State objects relate. Here we look at wh6 min readStatelessWidget and StatefulWidget, and have run an app with flutter run. It explains which values a hot reload keeps, which it discards, and why. The rule comes from how the framework rebuilds the widget tree, so the chapter 6 min readStatelessWidget from StatefulWidget, and run an app with flutter run or from an IDE. It also assumes you have used hot reload, which keeps state, and you now want its counterpart.6 min readflutter run with r and R, and know that hot reload keeps state while hot restart resets it. Here you learn which edits hot reload does not apply, and why.6 min readflutter run. It also assumes you know how StatefulWidget and State relate, and that you have already seen hot reload keep a counter's value. The earlier chapters explained how each mechanism works. This chapter covers how to pick one quickly and wha6 min readflutter run, that you know what hot reload and hot restart each do, and that you know the difference between Dart code and the native Android or iOS project that hosts it.6 min readStatefulWidget and know the initState, build, and dispose lifecycle. It also assumes you have used hot reload and hot restart and know that hot reload keeps State objects alive. Earlier chapters explained why edits to initState do not show up after a 5 min readflutter run, tell a StatelessWidget from a StatefulWidget, and recognize initState and build. It also assumes you have read the earlier chapters on what hot reload preserves and which changes it cannot apply.7 min readflutter run, and that you know the difference between hot reload, hot restart, and a full restart from earlier chapters. It covers where those tools stop working. The limits come from the build mode, the target platform, and the part of the app you edit6 min read