https://kotlinlang.org logo
#compose
Title
# compose
f

Fudge

05/24/2019, 6:29 AM
Do you plan to handle accepting a component of a certain type? Like having the
appBar
parameter of
Scaffold
only accept "a component of type appBar"
t

themishkun

05/24/2019, 7:03 AM
Is there any point in making this limitation? I mean, you should be able to put anything in your appbar. But for other places, where cruicial, I imagine you can accept an extension function to some restricted context
👍 3
c

Clara Bayarri

05/24/2019, 10:01 AM
we can have a named slot that will accept an AppBar by name, but you will always be free to hand in whatever you would like as you may want to write your own App Bar and there is no class inheritance
2
2 Views