# What is the difference of Stream and Provider?

**URL:** <https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320>\
**Category:** Flutter Apprentice\
**Created:** [October 22, 2021, 4:15am UTC](https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320 "2021-10-22T04:15:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minuth](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/minuth/32/81494_2.png) [@minuth](https://forums.kodeco.com/u/minuth)\
**Post date:** [October 22, 2021, 4:15am UTC](https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320/1 "2021-10-22T04:15:35Z")

</div>

Since we can use both of them to manage the state of app.

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 22, 2021, 6:33am UTC](https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320/2 "2021-10-22T06:33:50Z")

</div>

@minuth so Provider is just a way to manage the state of your application.

Now there are streamBuilders vs futureBuilders.

- `Future` is similar to a `Promise` in javascript. It performs some asynchronous task, and returns a future. This future holds only one response. Like making a network or API request
- `Stream` on the other hand is an asynchronous sequence of data. So you can listen to the changes for data over time. For example mouse events, or if you are making a game, up and down arrow on the keyboard to track how the character is moving.

For more information, Flutter has an excellent article on how Futures and Streams work:

> **[Asynchronous programming: Streams](https://dart.dev/tutorials/language/streams)**
>
> Learn how to consume single-subscriber and broadcast streams.
