# Robin with Flutter

### Add Messaging to Your Flutter App

Add chat functionality to your Flutter app — customize Robin UI to match your app’s theme. Take advantage of the Robin API and deploy messaging solutions in very little time.

{% embed url="<https://github.com/robin-io/robin_flutter>" %}

### Prerequisites

The following are required to get your chat app up and running:

1. API Key - Learn about how to get your API Keys in [Setting up your Robin account](https://docs.robinapp.co/guides/setting-up-your-robin-account#api-keys)
2. Current user’s [RUT](https://docs.robinapp.co/messaging-with-robin/guides/what-is-the-robin-user-token-rut) and Name - Robin User Token is a Unique Identifier of every user in your Robin App.
3. All users to be included in your chat app.

### Install the Flutter SDK

```bash
flutter pub add robin_flutter
```

### Creating the current user

You need to create a `RobinCurrentUser` instance of the currently logged-in user, mostly for identification. This is specific to the Flutter SDK.

```dart
RobinCurrentUser currentUser = RobinCurrentUser(
  robinToken: 'YOUR_ROBIN_USER_TOKEN',
  fullName: 'YOUR_USERNAME',
);
```

{% hint style="info" %}
For more information about connecting your app users to Robin, see [Adding Users to Your Robin App](https://docs.robinapp.co/messaging-with-robin/guides/adding-users-to-your-robin-app)
{% endhint %}

### Mount Robin and Start Messaging

You can mount Robin easily in your app by creating an instance of `Robin`.

```dart
import 'package:robin_flutter/robin_flutter.dart';

Robin(
  apiKey: 'YOUR_API_KEY',
  getUsers: [],
  currentUser: currentUser,
  keys: keys,
);
```

{% hint style="info" %}
Want to customize Robin to match your app’s theme, check out [Customizing Robin for your Brand](https://docs.robinapp.co/messaging-with-robin/guides/customizing-robin-for-your-brand)
{% endhint %}
