Flutter ની રેન્ડરિંગમાં ત્રણ વૃક્ષો આવે છે — Widget tree (રૂપરેખા), Element tree (ઇનસ્ટેન્શિયેટ કરેલ, પ્રબંધિત વિજેટ્સ), અને RenderObject tree (લેઆઉટ અને પેઇન્ટિંગ). આ પાઇપલાઇનને સમજવાથી Flutter કેવી રીતે અસરક્ષમતા સાથે વિજેટ્સને પિક્સલમાં રૂપાંતરિત કરે છે તે સ્પષ્ટ થઈ જાય છે.
ત્રણ વૃક્ષો
WIDGET tree → immutable CONFIGURATION (what you write: the description of the UI)
→ cheap to create/recreate; rebuilt often (build() returns new widgets)
ELEMENT tree → the INSTANTIATED widgets; manages lifecycle and LINKS widgets to render
objects; PERSISTS across rebuilds (this is the key to efficiency)
RENDEROBJECT tree → does the actual LAYOUT, PAINTING, and hit-testing (the heavy objects)
→ expensive; REUSED and updated (not recreated) across rebuilds
