Jacob Applin
05/24/2019, 10:06 PMclass ImageWizard(
val image: ImageProperty = ImageProperty(NoImageSrc),
val title: TextProperty = TextProperty(NoTextSrc),
val description: TextProperty = TextProperty(NoTextSrc),
private vararg val properties: Property<WidgetGroup>
) : Widget {
override fun createView(renderer: Renderer) = renderer delegateTo Column(
Image(image, Insets(bottom = MaterialLarge)),
Text(title, PrimaryLargeBold, Centered, Insets(bottom = MaterialSmall)),
Text(description, Primary, Centered),
Gravity(CenterVertical),
HorizontalInsets(MaterialLarge),
*properties
)
}