How to get Context in Jetpack Compose

前端 未结 7 1656
情歌与酒
情歌与酒 2021-02-19 07:35
fun createListItem(itemIndex: Int) {
Padding(left = 8.dp, right = 8.dp, top = 8.dp, bottom = 8.dp) {
    FlexRow(crossAxisAlignment = CrossAxisAlignment.Center) {
               


        
7条回答
  •  清歌不尽
    2021-02-19 07:40

    ContextAmbient.current is deprecated as of alpha-09.

    AmbientContext.current is how you get the context in a composable.

提交回复
热议问题