Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed [#577](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/577) - Resolve issue where long tooltip text was rendered outside the screen bounds
- Feature [#586](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/586): Enhance tooltip accessibility using Semantics live region
- Feature [#624](https://github.com/SimformSolutionsPvtLtd/showcaseview/pull/624): Added dynamic onStart callback registration with `addOnStartCallback` and `removeOnStartCallback` methods
- Fixed [#622](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/622) - Resolve Semantics issue when using `go_router` and `showSemanticsDebugger` flag

## [5.0.1]

Expand Down
20 changes: 13 additions & 7 deletions lib/src/utils/overlay_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,19 @@ class OverlayManager {

// Wrap with other inherited widgets to maintain showcase's context's
// inherited values.
return Directionality(
textDirection: inheritedData.textDirection,
child: MediaQuery(
data: inheritedData.mediaQuery,
child: DefaultTextStyle(
style: inheritedData.textStyle,
child: themedChild,
// Wrapping with Semantics to control accessibility based on
// `isSemanticsEnabled` flag.
return Semantics(
liveRegion: showcaseView.semanticEnable,
excludeSemantics: !showcaseView.semanticEnable,
child: Directionality(
textDirection: inheritedData.textDirection,
child: MediaQuery(
data: inheritedData.mediaQuery,
child: DefaultTextStyle(
style: inheritedData.textStyle,
child: themedChild,
),
),
),
);
Expand Down