I have this design that I'd like to use for my app but I'm not quite sure how to add the curved and the icon at the start of the text field.
Asked
Active
Viewed 183 times
1

Jamshid Ali
- 101
- 1
- 11
-
you can try with [flutter_neumorphic](https://pub.dev/packages/flutter_neumorphic) – Md. Yeasin Sheikh Feb 24 '22 at 12:38
1 Answers
1
Maybe something like this:
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),
),
),
)
],
),
),

Ante Bule
- 1,834
- 1
- 2
- 8