The Flutter popup Menu tutorial describes how to an add popup menu for switching between images.
The images will be downloaded first from the network. After that, a local copy of the image will be cached for faster reload.
This flutter development tutorial follows on from flutter download image tutorial.
Pre-requisites
Knowledge of the dart programming language is not required, but the experience of an object orientated programming language is recommended. Such as Java, C++, Kotlin, Swift to name a few.
Introduction
In this flutter development tutorial we will cover:
- Creating collection class for Photo properties
- Creating a list of classes
- Adding popup menu to app bar
- How to return an item from the popup menu
- How to refresh the widget in the display
Episodes
Conclusion
In the following flutter development tutorial, we will describe how to add a popup menu to the app bar.
The photos list will be provided to the PopupMenuButton. With the selected value to be used by the _select method. The _select method will update the display with the new image properties.
The following flutter development tutorial will describe how to use the drawer for switching between images.