Compose : how to stock a list of composable files
I wanted to make a list of all the elements I would draw in my composable fragment. And make it as easy to maintain as possible.
So I thought, I should not put the list of elements inside my fragment, but outside, in a class that will stock and order those elements.
Here is the solution I came with :
interface SimpleDraw {
@Composable
fun Draw()
}
Create differentes implementation of my interface
class WelcomeBottomSheetElementsImpl : WelcomeBottomSheetElements {
override...