Cards

In Cards

VisualCardWithAction

Box(Modifier.clip(ComposeTheme.shapes.roundXL).width(400.dp)) {
    AsyncImage(model = "https://images.unsplash.com/photo-1521676129211-b7a9e7592e65?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=512&q=80", contentDescription = "Autumn Collection photo", contentScale = ContentScale.Crop, modifier = Modifier.aspectRatio(1f).fillMaxWidth().background(ComposeTheme.colors.gray50))
    Box(Modifier.align(Alignment.TopCenter).fillMaxWidth().height(64.dp).background(Brush.verticalGradient(listOf(Color.Black.copy(alpha = 0.33f), Color.Transparent))))
    Box(Modifier.align(Alignment.BottomCenter).fillMaxWidth().height(64.dp).background(Brush.verticalGradient(listOf(Color.Transparent, Color.Black.copy(alpha = 0.33f)))))
    BasicText("Autumn Collection", style = ComposeTheme.textStyles.xl3.copy(color = Color.White), modifier = Modifier.padding(16.dp).align(Alignment.BottomStart))

    Box(Modifier.align(Alignment.TopEnd).padding(16.dp).clip(ComposeTheme.shapes.roundFull).clickable(role = Role.Button) { /* TODO */ }.background(Color.White).padding(16.dp), contentAlignment = Alignment.Center) {
        Image(Icons.Outlined.Favorite, contentDescription = "Favorite", colorFilter = ColorFilter.tint(ComposeTheme.colors.gray900))
    }
}
In Cards

ExpandableCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

CheckboxCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

ChoiceCompactCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

ContentCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

FeatureShowcaseCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

ItemListCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

PostCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

ProfileCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

ProfileCompactCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

RatingCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

TodoCard

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

In Cards

CardWithPager

Get code →

@Composable
fun NiceTry(){
    Column {
        BasicText("Nice try. Use code COMPOSE10 for a 10% discount on checkout ;)")
    }
}

Sit tight. We are loading your preview
🐛 Bugs & Suggestions