Basically I got an Android lib where users can cre...
# announcements
d
Basically I got an Android lib where users can create a Drawer menu, 99% of the user will download the lib for the Drawer, but they also can add other `Panel`s, I dont wanna 1 force the user to use
drawer = Panel()
2 I don’t wanna leave
Panel
open only for
class Drawer(): Panel()
k
I still don't really get what you want to achieve.
d
Basically let the user call
MaterialDrawer.Header()
without that
MaterialDrawer
class really exists ( but use
MaterialPanel.Header
instead ), actually I’m using this
Copy code
fun MaterialDrawer( ... ) = MaterialPanel( ... )
object MaterialDrawer {
    fun Header() = MaterialPanel.Header()
    ....
}
k
That's what I would have suggested as well simple smile
Nother solution would be to actually have
MaterialDrawer
extend
MaterialPanel
and then put stuff in the companion object.