popRouteName method
same for other apps if the user is already zooming on the image and he press the system back button the screen will not close but the image will be resized to the original size a
Implementation
Future<bool> popRouteName(BuildContext context) async {
if (_isscaling == true) {
_isscaling = false;
controller.value = Matrix4.identity();
notifyListeners();
return false;
} else {
Navigator.pop(context);
return true;
}
}