3.9) Don't Repeat Yourself, Code Refactor | The Complete (FREE) Flutter Course

preview_player
Показать описание
Buy me a coffee:

Source code:

We continue our build of the dribbble ui by refactoring our code to avoid duplication.
Рекомендации по теме
Комментарии
Автор

so cool <3. and good explanation as well.

marwanatef
Автор

75 bucks 😂, great video bro keep it up

Mohammadid
Автор

I believe you could use 'Extract Widget' instead of manually copy pasting. I think it's easier for beginers as it's easy to mess up commas and brackets when manually moving parts of code in a file.

mivoligo
Автор

here is my version of the code. I was just about to ask for a concise way of going abt this before I watched the video (the title go me) cuz obviously there is some code duplication in my version, I thought abt extracting the same code snippet as you did in the video but I couldn't find a way to keep the constraint max-height property.
valuable content as always ;)

Zackwifi
Автор

I followed your steps in order to replicate the UI up until this video. However, upon pressing the favorite buttons, no output is being displayed in the debug console. That is, function call are not working. What could be the problem?

Integratededucation
welcome to shbcf.ru