---
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:

```shell
flutter pub add stream_chat_flutter_core
```

OR

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

```yaml
dependencies:
  stream_chat_flutter_core: ^latest_version
```

You can find the package details on [pub.dev](https://pub.dev/packages/stream_chat_flutter_core).
