0

I am developing a simple puzzle app in Flutter. I am using the draggable widget. Normally my code works perfectly (drag and drop is ok). But when accessibility mode is on (talkback) the draggable widget does not work. So the feedback widget does not appear.

The code snippet is as follows:

return ConstrainedBox(
 constraints: BoxConstraints(
 minWidth: width,
 minHeight: height,
 maxWidth: width,
 maxHeight: height,
 ),
 child: Semantics(
 label: number,
 excludeSemantics: true,
 child: Draggable<int>(
 data: i,
 feedback: feedbackWidget(),
 childWhenDragging: childWhenDraggingWidget(),
 child: childWidget(),
 ),
 ),
 );

I don't understand why it doesn't work in accessibility mode. Please share your ideas. Thanks

asked Feb 7, 2025 at 20:04
1
  • Hey, not a Flutter dev here but one of the reasons could be that accessible content shouldn't be dependent on gestures (imagine having wrist/finger injury). That being said you should have alternative accessible controls to perform a given action. Commented Feb 8, 2025 at 16:43

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.