Building Dynamic Lists with Streams in Dart's Flutter Framework

preview_player
Показать описание
In this tutorial, we build a dynamic list of elements using streams in Flutter.

Рекомендации по теме
Комментарии
Автор

NIcely done! 2 requests
1. Caching of already loaded data. Also do tell about how to handle a large cache, your views on it.
2. Progress indicator while rendering the images

vidorvistrom
Автор

Thanks for sharing.. Is this the best approach right now? It seems overwhelming!

amerrashed
Автор

Hi Tensor, since you are creating http.Client(), isn't it necessary to close the connection? If yes, where would you close it? I am getting "Connection closed while receiving the data" error when I close the connection. Thank you for putting this together. Great help.

AbinVPaul
Автор

Hi mate, I wanted to ask why use streams this way as opposed to using a stream builder?

Also, when using stream builders, is there an issue with nesting them? Will I run into problems?

Say I stream a user profile from firestore, and then inside that I loop through an array of friend ids to display a stream builder for each one, is that going to cause problems, or could you do it this way without issue?

Thanks Tensor.

zacturner
Автор

Hi, You are passing StremContoller sc to the load function but it's not used anywhere inside it. Also I couldn't use .piple(sc); what could be wrong?

unnikrishnanadoor
Автор

Great tutorial. Could you still use a Stream if the API returns its data in pages rather than as a continual stream? So for example, if the API call took a page number as a parameter and returned a number of results representing that page. Thanks.

amugofjava
Автор

Hi Tensor, nice video. just wondering should ".pipe(streamController);" be ".pipe(sc);" ?

kaigu
Автор

why is it necessary to check index>=length?
in which event that could cause this to true?

gpsk
Автор

I really hope Dart gets a JSX like syntax extension.
React can be written the same functional way as Flutter using objects (instead of named parameters), but JSX makes it a million times better for new comers, and makes the code a Hella lot readable.
Flutter will rule mobile Dev if they can make it declarative like jsx some how.

DFKONMusik
Автор

Hi, newbie here. can you give me a hint or guide on what should i add to let request run by interval (1 request/min)?
i was told that using stream builder can help me update a changing json and display them in real time. still not sure how tho.

muhammadzar
Автор

hi, it is possible to execute a link from an online radio in this way

miguelesquef
Автор

Can somebody please tell me, what are the changes I have to make in this code to fetch data from Firestore dynamically. Thank you

ARU
Автор

hello Sir.. its a good lesson to me.. thanks .. but how do i add header data on the http.Request?

shadhirhassan
Автор

Great, Does this video have an update? for nullsafty?

briscopeasaristide
Автор

G'day Tensor, I get confused when to use what builders. I see people using combinations of it (E.g: StreamBuilder+FutureBuilder), like your videos. Can you please throw a bit more clarity. Thank you.

raghav
Автор

Dumb question, but does Dart transpile to ES6? I have been learning some React which forces use of ES6 and I absolutely hate ES6, the mapping functions are a nightmare, the foreach is lame. But ES6 seems to be winning the JS-transpiler war as people think its the new standard. Could I do all my JS in Dart and avoid having to ever write any ES6?

outshined
Автор

when I use a future builder to get data on the first tab of the bottom navigation bar from the backend it disappears when I change to the second tab bottom navigation bar. why does it happen? how do I fix this? please help!!

palakpandey
Автор

how much time you it took you to graspe all flutter :'( i think i will never be able to do all this .

Oviraptorus
Автор

awesome series. Just started to follow your channel. Just an awesome collection of languages. Would surely wanna donate to you what I can. But I'm just starting to learn about cryptocurrencies. Do you have any suggestions on where to start learning about them and also open a wallet easily explaining how they work. By the way planning to watch all of your go and elixir series.

sumantkanala
Автор

The pipe function is expecting a stream consumer and we are passing a stream controller, how is that ? It is giving me an error

OmarFranko
visit shbcf.ru