I’m making a circular textformfield, but the text ends up leaving the circle, I wanted it to stay inside the circle but it ends up leaving
Container(
height: 300,
width: 300,
padding: const EdgeInsets.all(5),
decoration: BoxDecoration(
color: Colors.amber,
shape: BoxShape.circle,
),
child:TextFormField(
expands: true,
maxLines: null,
textAlign: TextAlign.center,
textAlignVertical: TextAlignVertical.center,
keyboardType: TextInputType.multiline,
decoration: InputDecoration(
border: OutlineInputBorder(borderRadius: BorderRadius.circular(500)),
filled: false,
),
);
),
2
Answers
Simply wrap the TextFormField with an ClipRRect
) )
Just wrap TextFormField with Container and give border radius to Container and apply InputBorder.none in decoration of TextFormFiels
Ex :-
Container(
),