This adds the ability to close a modal by clicking the background.
Also setState got replaced with ValueListenableBuilder so that the child does not need to get rebuild every time the offset changes.
Closes issue #498
Testing instructions:
Go to the tasks app home page
Click on the navigationbar option 'Neu'
Click on either 'Task' or 'Patient'
Click on the semi-transparent background
Additional notes:
replaced Scaffold with Material widget since the AppBar of the Scaffold was not used and so the widgets have the same effect with the exception, that Material does not take up the whole screen.
This adds the ability to close a modal by clicking the background. Also setState got replaced with ValueListenableBuilder so that the child does not need to get rebuild every time the offset changes.
Closes issue #498
Testing instructions:
Additional notes: