pushMaterialWidget method
Navigates to another screen by pushing the provided widget into the widget stack using the MaterialPageRoute animation.
Implementation
void pushMaterialWidget(Widget pushedWidget) {
resetFocus();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => pushedWidget,
),
);
}