I am trying to center the text inside the Text Field and nothing seems to work. Can anyone give me a hint about why it is not working because I spent way too much time on it and nothing seems to change? Thank you in advance.
This is the code :
Flexible(
child: TextField(
textAlignVertical: TextAlignVertical.center,
enabled: false,
onChanged: (value) => ID = value,
decoration: InputDecoration(
contentPadding: const EdgeInsets.all(10),
disabledBorder: OutlineInputBorder(
borderSide: const BorderSide(
color: Color(0xff1C1C1E), width: 2.0),
borderRadius: BorderRadius.circular(22),
),
enabledBorder: OutlineInputBorder(
borderSide: const BorderSide(
color: Color(0xff1C1C1E), width: 1.0),
borderRadius: BorderRadius.circular(22),
),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(
color: Color(0xff1C1C1E), width: 1.0),
borderRadius: BorderRadius.circular(22),
),
labelText: dataFromPreviousPage["ID"],
floatingLabelBehavior:
FloatingLabelBehavior.never,
labelStyle: const TextStyle(
color: Color(0xff1C1C1E),
fontFamily: "Poppins",
fontWeight: FontWeight.w600,
fontSize: 25),
),
),
),
This is how it shows up: As you can see the text is touching the upper part

