P
P
piterov1805art2020-10-12 10:53:11
Android
piterov1805art, 2020-10-12 10:53:11

Is it correct to store widgets in variables?

Hello. I have several of the same widgets in my Flutter app. Would it make sense to put this widget in a variable and call it? Example:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2020-10-12
@RomReed

It is advisable to take out to smaller widgets, unless of course there is the same code that is repeated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question