Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivamdhuria authored Dec 11, 2021
1 parent dfba9f7 commit e745e13
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,28 @@ To add a reflective button, you need to first instantiate veneer. Make sure you
To use any veneer button just add veneer composable, as you'd add a regular button composable.

```Kotlin
RadialReflectiveButton(
rotationValue = rollAngle, onClick = { println("pressed") },
shape = RoundedCornerShape(50)
) {
Icon(
Icons.Outlined.Pause, contentDescription = "content description", tint = GREY600,

)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

setContent {
val scrollState = rememberScrollState()

val azimuthAngle by Veneer.azimuthAngle.collectAsState()
val pitchAngle by Veneer.pitchAngle.collectAsState()
val rollAngle by Veneer.rollAngle.collectAsState()

SurfaceTheme() {
Surface() {
Box(modifier = Modifier.fillMaxSize()) {
fun RadialReflectiveButton(rotationValue = rollAngle, onClick = }
,shape = RoundedCornerShape(50)) {
Icon(Icons.Outlined.Pause, contentDescription = "content description", tint = GREY600)
}
}
}
}
}
}
```


0 comments on commit e745e13

Please sign in to comment.