Skip to content

Commit

Permalink
🐛 #56 Landscape mode issue
Browse files Browse the repository at this point in the history
🐛 #86 Showcase isn't rendering responsively
  • Loading branch information
vatsaltanna authored and BirjuVachhani committed Jun 28, 2021
1 parent 6c90e42 commit c50a46b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## [1.0.1] - March 07, 2021 [Unreleased]
## [1.0.1] - June 25, 2021 [Unreleased]

- Fixed [#103](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/103) - add overlay padding.
- Fixed [#105](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/105) - showcase not showing text in one line even if it is not so big.
- Fixed [#56](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/56) - Landscape mode issue
- Fixed [#86](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/86) - Showcase isn't rendering responsively

## [1.0.0] - March 07, 2021

Expand Down
13 changes: 10 additions & 3 deletions lib/src/showcase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,17 @@ class _ShowcaseState extends State<Showcase> with TickerProviderStateMixin {

@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return AnchoredOverlay(
overlayBuilder: (context, rectBound, offset) =>
buildOverlayOnTarget(offset, rectBound.size, rectBound, size),
overlayBuilder: (context, rectBound, offset) {
final size = MediaQuery.of(context).size;
position = GetPosition(
key: widget.key,
padding: widget.overlayPadding,
screenWidth: size.width,
screenHeight: size.height,
);
return buildOverlayOnTarget(offset, rectBound.size, rectBound, size);
},
showOverlay: true,
child: widget.child,
);
Expand Down

0 comments on commit c50a46b

Please sign in to comment.