Skip to content

fix: handle Material 3 buttons and list tiles in inspect - #69

Open
dajiaohuang wants to merge 1 commit into
ai-dashboad:mainfrom
dajiaohuang:fix/material3-button-listtile-interaction
Open

dajiaohuang wants to merge 1 commit into
ai-dashboad:mainfrom
dajiaohuang:fix/material3-button-listtile-interaction

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Discover ButtonStyleButton controls, including FilledButton, and report their enabled state.
  • Discover CheckboxListTile and SwitchListTile with their labels and values; invoke their onChanged callbacks when pointer dispatch cannot reach them. Also support fallback callbacks for Checkbox and Switch.
  • Preserve a wrapping Semantics.identifier in structured inspect results and classify these controls in semantic refs.
  • Keep the packaged npm Dart SDK copy in sync.

Closes #68.

Validation

  • Added a synthetic widget test for FilledButton, CheckboxListTile, and SwitchListTile discovery and fallback callbacks, including a Semantics identifier.
  • Flutter 3.47.0: flutter test test/widget_interaction_fallback_test.dart — passed.
  • git diff --check — passed.
  • No real device, account, service, or app was used.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inspect/tap skip FilledButton and CheckboxListTile; callback fallback no-ops when hittable is false

1 participant