In Android, every single View subclass has a setVisibility() method that allows you modify the visibility of a View object
View
setVisibility()
The
Maybe you can use the Navigator function like this Navigator.of(context).pop();
Navigator.of(context).pop();