shadcn_flutter icon indicating copy to clipboard operation
shadcn_flutter copied to clipboard

[Question]: Custom focus jump for TextField using tab

Open AndreaMagnanini opened this issue 2 months ago • 5 comments

Question

Is there any way to make TextFields to jump focus to the next TextField rather then its InputFeatures when pressing tab?

Question Category

Component Usage

What have you tried?

No response

Code Context


Flutter Version

No response

shadcn_flutter Version

No response

Platform

No response

Additional Context

No response

Checklist

  • [x] I have searched existing issues and discussions
  • [x] I have checked the documentation
  • [x] This is a question/support request and not a bug report

AndreaMagnanini avatar Oct 15 '25 07:10 AndreaMagnanini

No way to do this atm except wrapping the InputFeatures manually. I will try to find a way to do this properly.

sunarya-thito avatar Oct 18 '25 02:10 sunarya-thito

Furthermore, is there any way to have browser's suggestions enabled for a TextField inside a FormField?

AndreaMagnanini avatar Oct 24 '25 08:10 AndreaMagnanini

Furthermore, is there any way to have browser's suggestions enabled for a TextField inside a FormField?

What do you mean by browser suggestions?

sunarya-thito avatar Oct 26 '25 20:10 sunarya-thito

I mean suggestion/completions displayed by the browser onto a textfield (usually based on a previous input)

AndreaMagnanini avatar Oct 27 '25 15:10 AndreaMagnanini

TextField has autofillHints params which you can use to provide the platform with the autofill hints information. Set it with a list containing all the autofill hints your user need. You can see the list here: https://api.flutter.dev/flutter/services/AutofillHints-class.html

sunarya-thito avatar Oct 27 '25 15:10 sunarya-thito