I can't control keyboard show or hide, In my project I need to always hide keyboard but keep focused to display my custom keyboard(a widget).
This is I want

And this is my problem

you just need to wrap your whole screen in the GestureDetector method and onTap method write this code. return GestureDetector( onTap: () => FocusManager. instance.
You can hide the counter by adding counterText: '' , inside the textfield decoration. It will simply display an empty String. Show activity on this post. Simply set counter to Offstage() will do the trick.
To hide keyboard and keep the cursor visible, set readOnly to true and showCursor to true.
TextFormField( showCursor: true, readOnly: true), See flutter/issues/#16863
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With