flutter TextInput color code example

Example 1: change border color of TextField in flutter

TextFormField(
        decoration: InputDecoration(
          labelText: "Resevior Name",
          fillColor: Colors.white,
          focusedBorder:OutlineInputBorder(
            borderSide: const BorderSide(color: Colors.white, width: 2.0),
            borderRadius: BorderRadius.circular(25.0),
          ),
        ),
      )

Example 2: text field placeholder color flutter theme

ThemeData( 
  // (...)
  hintStyle: TextStyle(
     color: Colors.grey, // <-- Change this
     fontSize: null,
     fontWeight: FontWeight.w400,
     fontStyle: FontStyle.normal,
     ),
);

Tags:

Dart Example