Welcome to Stream’s Flutter Codelab! Today, we will be adding Stream’s real-time chat to a Flutter application.
By the end of this code lab, you will be able to do the following:
Before starting this codelab, please ensure you have the following:
Create a new Flutter project in a directory of your choosing. You can name your project anything you like, but for this tutorial, we are going to call our project flutterista
.
$ flutter create flutterista
Next, navigate to the project’s pubspec.yaml
and add the Stream dependency.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
stream_chat_flutter: ^1.5.1 # Add this line
Finally, update your android/app/build.gradle
minimum, target, and compile versions to the following:
compileSdkVersion 29
targetSdkVersion 29
minSdkVersion 24
Great! We are on our way now. ⚡️