Waleed Bhai first of all greate series i always wanted to follow best practise and are teaching it very well. Well i dont understand why u need to pass initial params as a page params when we are using state also it will be difficut when we use navigation with named route so instead of setting param to in initstate and setting that param value tot cubit why dont we set that cubit value in the of tap it self
You are right. We are going to eliminate the whole initializing of initial params from the page all along. The initial params will be directly set into the cubit. I am going to refactor it in my next videos. I did it just for beginners to keep up so that they don’t have to digest a lot of complex stuff at once.
Waleed Bhai first of all greate series i always wanted to follow best practise and are teaching it very well. Well i dont understand why u need to pass initial params as a page params when we are using state also it will be difficut when we use navigation with named route so instead of setting param to in initstate and setting that param value tot cubit why dont we set that cubit value in the of tap it self
You are right. We are going to eliminate the whole initializing of initial params from the page all along. The initial params will be directly set into the cubit. I am going to refactor it in my next videos. I did it just for beginners to keep up so that they don’t have to digest a lot of complex stuff at once.
@@_technotherapist Yeah after watching part 4 now i understand why u did that