ComposeUI Card

简介: ComposeUI Card使用避坑

学习笔记:


注意:卡片布局,不要在Modifier设置背景,否则四角会有阴影,无法去掉


      Card(
           // 卡片布局,不要在Modifier设置背景,否则四角会有阴影,无法去掉
           modifier = Modifier
               .fillMaxWidth()
                .fillMaxHeight(),

            colors = CardDefaults.cardColors(
                  containerColor = Color(0xFFF5F7FA), // 自定义背景颜色
                ),
            shape = RoundedCornerShape(8.dp),
            elevation = CardDefaults.elevatedCardElevation(defaultElevation = 0.dp)
     ){
        // 布局内容......
    }
AI 代码解读
目录
打赏
0
0
0
0
137
分享
相关文章
解决el-descriptions的label-class-name不生效问题
解决el-descriptions的label-class-name不生效问题
1133 0
|
8月前
|
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
475 0
【已解决】Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>
546 0
【已解决】Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>
|
10月前
input type="button"和button的区别
input type="button"和button的区别
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)
80 0
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)B. Take Your Places!
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)B. Take Your Places!
52 0
elementui源码学习之仿写一个el-card
elementui源码学习之仿写一个el-card
302 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等