Doodle 0.4.0 released Highlights include: - Upgra...
# javascript
n
Doodle 0.4.0 released Highlights include: • Upgrade to Kotlin 1.4.21! IR support will come in a future release as dependencies support it. • Improved Font support with the ability to load fonts from file urls and oblique font styles • New property delegates (renderPropertystyleProperty) that automate trigger re-render and style notifications
Copy code
class MyView: View {
    var name by renderProperty("") // will cause the View to re-render when it changes
    var age  by styleProperty (56) // will cause trigger styleChanged event when changed
}
PointerPointerMotion, and Key listener DSLs for more compact consumption of a single event type
Copy code
view.poinerChanged        += pressed  { event -> }
view.keyChanged           += released { event -> }
view.pointerMotionChanged += dragged  { event -> }
• DSLs to simplify usage of ListEditor, Layouts that only position, and CommonButtonBehavior that just render • TextField now supports font/color for placeholder • Added support for text decorations to StyledText See the full release notes for more details. Posted in #doodle
👍 4
🙏 2