You need to do like this
Navigator.of(context).push(context,MaterialPageRoute(builder: (context) => YourScreen())