You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a platform application with Flutter and it's going quite well until now. But since I wanted to make the cursor of Textfield taller(not thicker, I know 'cursorWidth' option already exists), I have no way to do this without any customization of original material class. Anybody has made this before? It would be very cool if anybody has an example/solution.
As of now you're right, there is only a way to adjust the cursor width, not height. I think this is a reasonable request though. I'm gathering a list of improvements for TextField, so I'll add this.
Reacted by Jonas Zebari, wowlol, yk3372, Daren Palmer, Wilfried L. Bounsi and Tim
@justinmc@GaryQian Thanks a lot for the quick reply. My previous comment was based on "4 weeks ago" dev build. I just tried the latest dev build. The caret looks much better now. I am ok with the current behavior. Cheers. 😀👍
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
justinmc commentedon Jan 22, 2019
As of now you're right, there is only a way to adjust the cursor width, not height. I think this is a reasonable request though. I'm gathering a list of improvements for TextField, so I'll add this.
sgon00 commentedon May 6, 2019
Currently, the cursor's height is smaller than the Text height and top aligned. Is this expected?
justinmc commentedon May 6, 2019
@sgon00 I'm not sure, can you post a screenshot? There are some issues that might be similar to what you're seeing.
#30771 (recently fixed)
#31661 (open)
GaryQian commentedon May 7, 2019
@sgon00 Try dev or master channels, as we have recently landed a fix that centers the caret with the text.
sgon00 commentedon May 7, 2019
@justinmc @GaryQian Thanks a lot for the quick reply. My previous comment was based on "4 weeks ago" dev build. I just tried the latest dev build. The caret looks much better now. I am ok with the current behavior. Cheers. 😀👍
eliwowlol123 commentedon Jun 28, 2019
Has there been any progress towards solving this problem?
justinmc commentedon Jun 28, 2019
No one has worked on a way to set the cursor height yet as far as I know. PRs are welcome though if anyone wants to pick this up!
eliwowlol123 commentedon Jun 29, 2019
Okay no problemo!
aneeshjose commentedon Aug 23, 2019
#24182 (comment)
Hope this helps.
rahulsinghk commentedon May 16, 2020
and one more problem, cursor height decreases when using contentPadding in the input. plz provide a way to change the cursor height
github-actions commentedon Aug 18, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.