Комментарии:
All is great and thank you, but do you have any videos to use bloc pattern without using any library?
I want to use only everything comes with flutter itself not third party
Hello Zaiste
Thanks for your videos. I have started to use your Architecture for a case study. I have a specific use case. For instance, we have many widgets ( text and textfield) in the screen and all quantities are textfield widgets. I can say the headings are id, description, quantity, price. Reaming are text.All datas are getting from REST API.
let us say we have 5 rows. These are from API
id,description,Quantity,Price
----------------------------------------------------------------------
(1,testingFirst,0,2.32)
(2,test,0,10.3)
(3,PC,0,12.000)
------------------------ (second section)***********
(50,cups,0,12.3)
(60,testingLast,0,12.3)
********** Total: sum of all price**********
when I change quantity, I need to update corresponding rows price and also last row. Which means if I enter 25 in first rows quantity, the last rows quantity also will be 25 and at the same time the price will be changed based on quantity. Why I need to update last row, since first and last row is related and others are not related. If no relation, no need to update .
When I enter a quantity , I need to check is there any rows in second section related with first row. If related update those rows.
I am not getting an idea what changes I need to do in bloc and streams. How can I easily find related id and update only those rows.
If both are 2 separate section, I can think of loops ( I am from web programming) and check particular id's related in second section. But how this can be done in Flutter ?
Great material
ОтветитьI'm not sure if I missed something, but could you please explain why are you using '$' as a suffix for stream names? Is this some kind of convention?
Ответить