android - 颤振 | 边框半径不适用于 Android
问题描述
我想找出为什么边框半径不会在 Android 上应用小部件的上半部分。
这是Android上的图像
但是在网络上,它的工作方式如下图所示。
有谁知道为什么?
代码
Center(
child: Card(
elevation: 1.5,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(16.0))),
child: SizedBox(
width: 250.0,
height: 150.0,
child: Column(
children: <Widget>[
Container(
width: double.infinity,
height: 60.0,
color: Colors.pink[200].withOpacity(0.95),
child: Center(
child: Text('Felicity Jones'),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Center(
child: Text('9:15'),
),
),
)
],
),
),
),
),
解决方案
推荐阅读
- wordpress - 带有 WP SMTP 插件的 Gmail API 未发送到 Gsuite“组”
- javascript - 在一个 /post 中发送两封邮件?
- c++ - 如何将成员函数传递给另一个函数?
- matlab - MATLAB struct - 在结构实例化时以编程方式定义字段的数据类型?
- scala - What causes this Scala program to become suspended due to tty output when run in the background?
- spring - Spring Data JPA - is sort by field in attribute possible?
- php - Symfony 2 form $_POST data escaped - FIXED
- terraform - Describe your approach of keys/secrets versioning using Terraform and Hashi Vault
- android - Android Chip inflation causes "Invalid ID 0x00000000."
- android - Modifying Android systrace for capturing CPU Frequency even where is no change