pushMaterialWidget method

void pushMaterialWidget(
  1. Widget pushedWidget
)

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,
    ),
  );
}