From d7cee6e0e46b77335eb519d9a00d20b0bc28d772 Mon Sep 17 00:00:00 2001 From: Nnaemeka Abah Date: Tue, 25 May 2021 15:49:53 +0100 Subject: [PATCH 1/3] Update feature_discovery.dart --- lib/src/foundation/feature_discovery.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/foundation/feature_discovery.dart b/lib/src/foundation/feature_discovery.dart index 12761fa..a75f4f9 100644 --- a/lib/src/foundation/feature_discovery.dart +++ b/lib/src/foundation/feature_discovery.dart @@ -15,6 +15,7 @@ enum ContentLocation { above, below, trivial, + right, } class FeatureDiscovery extends StatelessWidget { From af062119423418dc2c8873a76f3f84d7b376d5b7 Mon Sep 17 00:00:00 2001 From: Nnaemeka Abah Date: Tue, 25 May 2021 15:52:36 +0100 Subject: [PATCH 2/3] Update overlay.dart --- lib/src/widgets/overlay.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/widgets/overlay.dart b/lib/src/widgets/overlay.dart index f6778cc..bb4b39d 100644 --- a/lib/src/widgets/overlay.dart +++ b/lib/src/widgets/overlay.dart @@ -462,6 +462,10 @@ class _DescribedFeatureOverlayState extends State Offset? endingBackgroundPosition; switch (contentLocation) { + case ContentLocation.right: + endingBackgroundPosition = + Offset(width / 2.0, anchor.dy + (width / 4.0)); + break; case ContentLocation.above: endingBackgroundPosition = Offset( anchor.dx - From 06ce8253420a88a8e6a66391d83bd2bef9749f98 Mon Sep 17 00:00:00 2001 From: Nnaemeka Abah Date: Tue, 25 May 2021 16:03:47 +0100 Subject: [PATCH 3/3] fix: fixes discovery hidden to right fixes an issue that occurs when the feature discovery is called with a widget that is aligned to the right of the screen fixes #62 --- example/pubspec.yaml | 2 +- pubspec.yaml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index fa65d1d..c33f40d 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^0.1.2 + cupertino_icons: ^1.0.3 feature_discovery: path: ../ diff --git a/pubspec.yaml b/pubspec.yaml index 4b1f3b3..94d5f11 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: >- A Flutter package that implements Material Design Feature discovery to show a description of specific features to new users. See https://tinyurl.com/FeatureDiscovery -version: 0.14.0 +version: 0.14.0+1 homepage: https://github.com/ayalma/feature_discovery environment: @@ -16,14 +16,11 @@ dependencies: sdk: flutter provider: ^5.0.0 - shared_preferences: ^2.0.3 + shared_preferences: ^2.0.5 dev_dependencies: flutter_test: sdk: flutter - pedantic: 1.9.0 + pedantic: ^1.11.0 -dependency_overrides: - # TODO(creativecreatorormaybenot): Remove when Pedantic is updated in flutter_test. - pedantic: 1.9.0