Loading topic
ElevatedButton, FilledButton, OutlinedButton and TextButton), how to choose between them, and the errors 6 min readStatelessWidget and `6 min readStatelessWidget and StatefulWidget, and that you know Dart closures and the Row, Column and Padding layout widgets. You should also know the four Material button widgets and how onPressed enables or disables them. Here you learn how a5 min readsetState, and already know how to set a button's colors with styleFrom. It explains how a button picks its appearance while the user presses, hovers over, focuses, or is blocked from using it.5 min readIconButton, its variants, and the tooltip property. It assumes you can build a widget tree with StatelessWidget and StatefulWidget, use setState, and read basic Dart closures. It also assumes you know the Material button widgets (Elevated, Filled, Outlined, Text) and th5 min readStatelessWidget and StatefulWidget, call setState, and read basic Dart closures. You should also know the layout widgets Row, Column, Stack and Padding. Buttons from earlier chapters already handle most tap needs. GestureDetector 5 min readInkWell gives tappable areas Material ripple feedback and why it fails when its surroundings are wrong. It assumes you can build a widget tree with StatelessWidget and StatefulWidget, use setState, and lay out content with Padding, Row, Column and Stack. It al4 min readGestureDetector for taps and long presses, build layouts with Stack and Padding, and call setState. It explains how Flutter decides which widgets receive a pointer event, and how HitTestBehavior changes that decision. Many "my tap does nothing" bugs come fr5 min readGestureDetector's pan callbacks, which report free movement in both axes. You will build a draggable box that stays inside its container, and you will see what each callback receives and where dra5 min readonScaleStart, onScaleUpdate and onScaleEnd on GestureDetector. It assumes you know setState, StatefulWidget, and the pan callbacks from the previous chapter on drags. It also assumes you have a rough idea of what Transform does.5 min readStatefulWidget and setState. It also assumes you have used GestureDetector for taps, long presses and pan callbacks, and that you know that widgets can be nested in Stack, Row and Column. Here you learn why only one of several overlapp6 min readDismissible removes an item when the user swipes it away. Draggable and DragTarget move data from one place to another. It assumes you know setState, ListView.builder, Stack, and the onPanUpdate callback from th5 min readStatelessWidget and StatefulWidget, use setState, lay out widgets with Row, Column, Stack and `P7 min readsetState, and you have built the buttons and gesture widgets from the earlier chapters. Everything below runs with flutter test.4 min read