How to remove the margin added to the label in Textfield that has prefixIcon when receiving Focus?

Asked

Viewed 32 times

0

Current inserir a descrição da imagem aqui

Goal: inserir a descrição da imagem aqui

Container(
  padding: EdgeInsets.all(10),
  child: TextFormField(
    keyboardType: TextInputType.number,
    textInputAction: TextInputAction.continueAction,
    style: TextStyle(fontSize: 20),
    decoration: InputDecoration(
      alignLabelWithHint: true,
      prefixIcon: Icon(Icons.device_thermostat),
      labelText: "Temperature",
      border: OutlineInputBorder(),
      hintText: "Enter  temperature",
    ),
  ),
)
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.