'What is basic unit of ui of jetpack compose?

Android xml basic unit of ui is View. Flutter basic unit of ui is Widget.

Then, What is basic unit of Jetpack Compose?

I'm thinking about what to end compose ui function name with. Like. SearchView, SearchWidget, SearchCompose, SearchUI, SearchComponent etc...

What do you all think?



Solution 1:[1]

It depends on what you're trying to accomplish. If you need a basic view to display background for instance, Surface will do the job. If you'd like an empty view to space your items – although padding would do the same – then you could use Spacer

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Stephen Vinouze