This is the following code where I tried setting TextFormField Widget Color. I tried changing the color of the Container Widget and the Card Widget, but I couldn't alter the color of the TextFormField Widget in particular.
child: Container(
height: MediaQuery.of(context).size.height,
color: Colors.white,
child: Card(
color: Colors.blue,
child: Form(
key: _formKey,
child: Column(children: [
Padding(
padding:
const EdgeInsets.fromLTRB(30, 50, 30, 20),
child: TextFormField(
keyboardType: TextInputType.emailAddress,
decoration: InputDecoration(
border: OutlineInputBorder(
borderSide:
const BorderSide(color: Colors.white),
borderRadius: BorderRadius.circular(25.0),
),
prefixIcon: Icon(
Icons.email,
color: Colors.blue,
),
labelText: "Email",
labelStyle: TextStyle(
color: Colors.black,
fontSize: 18,
fontWeight: FontWeight.w300),
),
),
fillColor: Colors.orange
andfilled: true
inside yourInputDecoration()
. – Viceregent