> For the complete documentation index, see [llms.txt](https://gdgaddis.gitbook.io/mobile-development-reference-tce-c01/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gdgaddis.gitbook.io/mobile-development-reference-tce-c01/routing/adding-router-to-material-app.md).

# 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.

```dart
 MaterialApp(
        title: 'Tech camp Flutter',
        debugShowCheckedModeBanner: false,
        //TODO: Add this line
        builder: ExtendedNavigator.builder(router: Router()),
 ),
```

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.

```dart
import 'package:flutter/material.dart' hide Router;
```
