@@ -42,7 +42,7 @@ import com.example.compose.snippets.R
4242@Preview
4343//  [START android_compose_carousel_multi_browse_basic]
4444@Composable
45- fun  CarouselExamples_MultiBrowse () {
45+ fun  CarouselExample_MultiBrowse () {
4646    data class  CarouselItem (
4747        val  id :  Int ,
4848        @DrawableRes val  imageResId :  Int ,
@@ -93,7 +93,7 @@ fun CarouselExample() {
9393        val  contentDescription :  String 
9494    )
9595
96-     val  items  =  remember {
96+     val  carouselItems  =  remember {
9797        listOf (
9898            CarouselItem (0 , R .drawable.cupcake, " cupcake"  ),
9999            CarouselItem (1 , R .drawable.donut, " donut"  ),
@@ -104,7 +104,7 @@ fun CarouselExample() {
104104    }
105105
106106    HorizontalUncontainedCarousel (
107-         state =  rememberCarouselState { items .count() },
107+         state =  rememberCarouselState { carouselItems .count() },
108108        modifier =  Modifier 
109109            .fillMaxWidth()
110110            .wrapContentHeight()
@@ -113,7 +113,7 @@ fun CarouselExample() {
113113        itemSpacing =  8 .dp,
114114        contentPadding =  PaddingValues (horizontal =  16 .dp)
115115    ) { i -> 
116-         val  item =  items [i]
116+         val  item =  carouselItems [i]
117117        Image (
118118            modifier =  Modifier 
119119                .height(205 .dp)
@@ -131,6 +131,6 @@ fun CarouselExample() {
131131fun  CarouselExamples () {
132132    Column  {
133133        CarouselExample ()
134-         CarouselExamples_MultiBrowse ()
134+         CarouselExample_MultiBrowse ()
135135    }
136136}
0 commit comments