问问题
27 次
1 回答
1
也许是这样的:
Container(
padding: const EdgeInsets.symmetric(horizontal: 20),
height: 50,
child: Stack(
clipBehavior: Clip.none,
children: [
ClipRRect(
borderRadius: const BorderRadius.only(topRight: Radius.circular(20)),
child: TextField(
decoration: InputDecoration(
fillColor: Colors.grey.shade300,
filled: true,
prefixText: ' ',
hintText: 'Email'
),
),
),
Positioned(
left: -20,
top: 0,
child: Container(
height: 50,
width: 50,
padding: const EdgeInsets.all(5),
decoration: const ShapeDecoration(
color: Colors.white,
shape: CircleBorder(),
),
child: Container(
decoration: ShapeDecoration(
color: Colors.grey.shade300,
shape: const CircleBorder(),
),
padding: const EdgeInsets.all(5),
child: const Icon(Icons.mail),
),
),
)
],
),
),
于 2022-02-24T13:03:37.057 回答