# 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;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdgaddis.gitbook.io/mobile-development-reference-tce-c01/routing/adding-router-to-material-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
