---
id: setup
sidebar_position: 2
title: Setup
---

Understanding Setup For stream_chat_flutter_core

### Add pub.dev dependency

First, you need to add the `stream_chat_flutter_core` dependency to your pubspec.yaml

You can either run this command:

```
flutter pub add stream_chat_flutter_core
```

OR

Add this line in the dependencies section of your pubspec.yaml after substituting latest version:

dependencies:
  stream_chat_flutter_core: ^latest_version

