Robin Docs
  • Overview
  • Fundamentals
  • Messaging with Robin
    • Guides
      • How does Robin Messaging work?
      • Setting up your Robin account
      • Integrating Robin in your Nuxt.js app
      • Adding Users to your Robin App
      • What is the Robin User Token (RUT)?
      • The What and Why: Robin Keys
      • Customizing Robin for your Brand
    • SDKs for UI Kit
      • Robin with Vue
      • Robin with React
      • Robin with Flutter
    • Add Messaging with Core SDKs
      • Javascript
      • Go
      • Python
  • API Reference
  • Robin Messaging Events
  • Samples and Resources
Powered by GitBook
On this page
  • Add Messaging to Your Flutter App
  • Prerequisites
  • Install the Flutter SDK
  • Creating the current user
  • Mount Robin and Start Messaging

Was this helpful?

  1. Messaging with Robin
  2. SDKs for UI Kit

Robin with Flutter

PreviousRobin with ReactNextAdd Messaging with Core SDKs

Last updated 2 years ago

Was this helpful?

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.

Prerequisites

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

  1. All users to be included in your chat app.

Install the Flutter SDK

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.

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

Mount Robin and Start Messaging

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

import 'package:robin_flutter/robin_flutter.dart';

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

API Key - Learn about how to get your API Keys in

Current user’s and Name - Robin User Token is a Unique Identifier of every user in your Robin App.

For more information about connecting your app users to Robin, see

Want to customize Robin to match your app’s theme, check out

RUT
Adding Users to Your Robin App
Customizing Robin for your Brand
GitHub - robin-io/robin_flutterGitHub
Logo
Setting up your Robin account