This could be considered as an enhancement to the existing code.
How to reproduce :
In the HomePage , choose either of the FAB button (Take an image / Open gallery).
Once an image is selected , it will be redirected to the Imageview class.
At the bottom we have an Undo button which routes to the same class to undo the changes that was brought to the image.
Solution :
We can have a dynamic list where we can keep on appending the changed image files.
On pressing undo , we can just setState the file attribute with the list.length - 1 index file image , which can revert back to the previous file image state.
This could be considered as an enhancement to the existing code.
How to reproduce :
Imageview
class.Solution :
file
attribute with thelist.length - 1
index file image , which can revert back to the previous file image state.