decoration: InputDecoration(
labelText: 'Enter Name',
hoverColor: Color.fromARGB(66, 183, 102, 102),
enabledBorder: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide:
const BorderSide(color: Colors.deepPurple, width: 2),
),
focusedBorder: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide: BorderSide(
color: const Color.fromARGB(255, 64, 35, 113)),
),
border: OutlineInputBorder(),
)
I'm using this one and it is working for me.
child: TextField(
decoration: InputDecoration(
hintText: "Email Address",
hintStyle: TextStyle(color: Colors.grey),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 1),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 1),
),
),
),