# Integration

The Flutter plugin for DriveKit SDK is open source and available on GitHub: <https://github.com/DriveQuantPublic/flutter-drivekit>

If you want to get a sample code to install DriveKit in your Flutter application, you can try our [demo application](https://github.com/DriveQuantPublic/flutter-drivekit/tree/main/example).

If you want to integrate the SDK into your application, please follow the exhaustive documentation available on the main [README](https://github.com/DriveQuantPublic/flutter-drivekit/blob/main/README.md) on GitHub.&#x20;

The main steps to install the DriveKit SDK in your application are described below.

**Step 1: Install the Core module**

* How to configure mandatory information like the API key, user identifier, etc.
* Manage DriveKit events, e.g. when the user is connected, logged out, has change permission state, etc.

**Step 2: Install the Trip Analysis module**

* The module is required to set how you want trips to be recorded (autostart configuration, custom timeout, …).

**Step 3: Install the Driver Data module**

* Integrate Integrate the Driver Data module to manage user's trips (list, details, deletion) and ensures the synchronisation of driver data.

**Step 4: Test your implementation with Trip Simulator module**

* To verify the DriveKit Trip Analysis component integration into your app, it is recommended to perform tests in real conditions. Before carrying out driving tests, it may be useful to validate the implementation of the SDK in your application thanks to the Trip Simulator module.

**Step 5: Notify the user about the trip analysis**

* To inform the user that the trip has been analyzed, finished or cancelled, the DriveKit libraries for Flutter offers listeners so it becomes easy to build notifications on both mobile platforms.
* Read our documentation carefully to manage notifications to manage notification even when the app is not on background!


---

# 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://docs.drivequant.com/flutter/integration.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.
