I hereby claim:
- I am tsuijten on github.
- I am tsuijten (https://keybase.io/tsuijten) on keybase.
- I have a public key ASCDpRAopaK9Hh2mBHXkZmecjJXSFcfQVPFADRsu-rZVrQo
To claim this, I am signing this object:
{ | |
"title": "REVEALING ART AI AND TECH", | |
"subTitle": "30.11.2023 - 21.01.2024", | |
"purchaseEnableFromDate": "20-11-2023", | |
"purchaseEnableToDate": "20-01-2024", | |
"menu": { | |
"title": "Menu", | |
"items": [ | |
{ | |
"title": "Menu item1", |
Column { | |
listOf("John", "Julia", "Alice", "Mark").forEach { | |
Text(text = it) | |
} | |
} |
@Composable | |
private fun DrawFillRect(brush: Brush) { | |
Draw { canvas, parentSize -> | |
val paint = Paint() | |
brush.applyBrush(paint) | |
canvas.drawRect(parentSize.toRect(), paint) | |
} | |
} |
@Composable | |
fun Counter(counterModel: CounterModel) { | |
Column { | |
CounterHeader(counterModel) | |
AddSubtractButtons(counterModel) | |
CounterLabel(counterModel) | |
} | |
} | |
@Composable |
@Model | |
class CounterModel { | |
var counter: Int = 0 | |
var header = "Counter demo" | |
fun add() { counter++ } | |
fun subtract() { counter-- } | |
} |
@Composable | |
fun MyApp() { | |
MaterialTheme { Counter() } | |
} | |
@Composable | |
fun Counter() { | |
val amount = +state { 0 } | |
Column { |
class ComposeActivity : Activity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContent { CraneWrapper { MyApp() } } | |
} | |
@Composable | |
fun MyApp() { | |
MaterialTheme { | |
Text(text = "Hello world!", style = +themeTextStyle { h3 }) |
I hereby claim:
To claim this, I am signing this object: