WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

5.0.2

Latest

Choose a tag to compare

@davidmigloz davidmigloz released this 16 Jul 20:09
· 1 commit to master since this release
73d6f30
  • Removed onAmountChange: (String) -> Unit and merge with NumberKeyboardListener implementation, Fixed rawAmount having 0 in front. by @delacrixmorgan in #47

⚠️ Breaking Changes

  • Removed onAmountChange: (String) -> Unit and merge with NumberKeyboardListener implementation.

🧭 Migration Guide

var amountWithCurrency by remember { mutableStateOf("$currencySymbol 0") }
var amount by remember { mutableStateOf("") }

NumberKeyboard(
    amount = amount,
    listener = object : NumberKeyboardListener {
        override fun onUpdated(data: NumberKeyboardData) {
            amountWithCurrency = data.currency
            amount = data.rawAmount
        }
    }
)