Need some advice in how to optimize my app

You seem to have components in pairs, like

  • Caixas, Pcts
  • Caixas2, Pcts2
  • Caixas3, Pcts3

I don't see any place in your blocks where you use lists, or where you reuse a small number of components for a movable section of your lists.

Be aware that you can initialize global lists of components and iterate through them.

You can also pair up components in lists of lists, or in dictionaries, to let you apply dependency rules of color and height pair by pair in a loop.

It makes it easier to debug projects like this if the components follow a naming convention, with component name prefixes like

  • har: Horizontal Arrangement
  • lbl: Label
  • txb:Text Box

Some sample projects for you to read ...

2 Likes