Open Micoder-dev opened 3 months ago
Action sheet is not designed to be used with interactive content inside actions. Use modal sheets instead. Or try to set enabled to false for sheet actions
- CupertinoActionSheet
I tried setting enabled
to false
for the sheet actions, but it doesn't resolve the issue. While modal bottom sheets work fine, using text fields inside CupertinoActionSheet
looks really cool and enhances the user experience for certain use cases.
Would it be possible to consider creating a new widget specifically designed to handle interactive content like text fields within CupertinoActionSheet
? This feature would be highly beneficial and may be required for various occasions.
Thank you for your consideration!
Description When using
CupertinoSearchTextField
or any text field insideCupertinoActionSheet
orCupertinoAlertDialog
, the keyboard does not open as expected.Code Sample Below is a code snippet demonstrating the issue:
Steps to Reproduce
CupertinoActionSheet
.CupertinoSearchTextField
.Expected Behavior The keyboard should open automatically when focusing on the
CupertinoSearchTextField
.Actual Behavior The keyboard does not open when focusing on the
CupertinoSearchTextField
.Additional Information Using
LaunchedEffect
with a delay andfocusRequester.requestFocus()
does not resolve the issue.Any help or workaround for this issue would be greatly appreciated.