'Flutter: How to change the height of the cusror in the TextField

TextFiled Screen Shot

There is a property for changing the weight of the TextField cursor. Same I want to increase the height of the TextField cursor. Is there any way to do it ??

Here is the sample code of my TextField.

TextField(
  decoration: InputDecoration(
    border: OutlineInputBorder(),
    labelText: 'Username',
  ),
)



Solution 1:[1]

Guess the accepted answer is outdated...

TextField (style: TextStyle(height: 1.2))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Moshe Yamini