Home

Awesome

<h1 align="center">Flutter Instagram Clone (Stream-agram)</h1> <p align="center"> <a href="https://pub.dev/packages/stream_feed_flutter_core"><img src="https://img.shields.io/pub/v/stream_feed_flutter_core?include_prereleases" alt="Pub"></a> <a href="https://pub.dev/packages/flutter_lints"><img src="https://img.shields.io/badge/style-flutter__lints-blue" alt="style: flutter lints"></a> <a href="https://github.com/GetStream/flutter-samples"><img src="https://img.shields.io/badge/flutter-samples-teal.svg?longCache=true" alt="Flutter Samples"></a> <a href="https://opensource.org/licenses/Apache-2.0"><img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a> <a href="https://getstream.io/"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/HayesGordon/e7f3c4587859c17f3e593fd3ff5b13f4/raw/11d9d9385c9f34374ede25f6471dc743b977a914/badge.json" alt="Stream Feeds"></a> </p> <p align="center"> Stream-agram is a demo application showing how to recreate Instagram using <a href="https://flutter.dev/">Flutter</a> and <a href="https://getstream.io/activity-feeds/">Stream Feeds</a>. </br> <p align="center"> <img src="/previews/preview.png" /> </p>

Tutorials

If you'd like to learn more about this project and how the code is structured, take a look at the companion blog and video. Make sure you're on the tutorial branch - this branch is the historic branch that aligns with the tutorial. The main branch is the most up to date with the latest code changes and package versions.

git checkout tutorial

Blog Post

YouTube Video

Previews

<p align="center"> <img src="https://media.giphy.com/media/MIrqjKRR9BjhpaHlOj/giphy.gif" width="32%" height="50%"/> <img src="https://media.giphy.com/media/JmRYelSIZzI0mieFwO/giphy.gif" width="32%" height="50%"/> <img src="https://media.giphy.com/media/GdZBm6SBJgiGRG8nBv/giphy.gif" width="32%" height="50%"/> </p>

Supported features

Getting Started

These are the steps to run this project locally, with your own Stream Feeds configuration.

Clone This Repository

git clone https://github.com/GetStream/flutter-instagram-clone

The project folder needs to be renamed in order for flutter create to work (dashes "-" in the folder name are not allowed). You can do this however you want. For example, from a bash terminal you can do:

mv flutter-instagram-clone flutter_instagram_clone

Create Flutter Platform Folders

Run this inside the main folder to generate platform folders.

flutter create .

Setup Image Picker Package

Depending on the platform that you're targetting you will need to do some setup for the image_picker Flutter package. At the time of writing this package only supports Android, iOS and Web.

Add Keys and Tokens

You will also need to add your Stream API-Key and User Frontend Tokens. These are marked with TODOs in the codebase. For additional information, see the blog or video section on creating user tokens.

<img src="https://user-images.githubusercontent.com/24237865/138428440-b92e5fb7-89f8-41aa-96b1-71a5486c5849.png" align="right" width="12%"/>

Stream Feeds Flutter SDK

Stream-agram is built with Stream Feeds for implementing activity feeds.

<img src="https://media.giphy.com/media/Dm0KdEtqxhpdkEa6j7/giphy.gif" align="right" width="32%"/>

Stream Chat Flutter SDK

If you're interested in adding chat functionality to your Instagram clone, check out Stream Chat.

Find this repository useful? 💙

Support it by joining stargazers :star: <br>

License

Copyright 2021 Stream.IO, Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.