简体   繁体   中英

Flutter TextInputAction.done not showing checkmark button

I have this TextFormField in a Stateful widget

TextFormField(
                    decoration: InputDecoration(labelText: "Image URL"),
                    keyboardType: TextInputType.url,
                    textInputAction: TextInputAction.done,
                  )

The expected behavior is to see a checkmark button (instead of newline button) in my swiftkey keyboard on my Android device; but nothing has changed on the keyboard. I have tried another TextInputActions like Search and Send they appear properly.

Even flutter is a great platform, there are still some missing points need to be improved. So in your case most probably;

keyboardType is affecting the done button to not show up. So if you simply change your keyboardType to TextInputType.text your keyboard will start showing checkmark icon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM