Adding router to Material App
So the last step is adding an instance of the router class we just generated to the material app to manage its routes.
While doing this step flutter may cause an error that the router class is imported from two libraries. So in order to overcome that change your imports like this.
Last updated