Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay appears panned to a side #51

Closed
jagomf opened this issue Oct 9, 2020 · 3 comments
Closed

Overlay appears panned to a side #51

jagomf opened this issue Oct 9, 2020 · 3 comments

Comments

@jagomf
Copy link

jagomf commented Oct 9, 2020

I have a DescribedFeatureOverlay on a center-docked FAB, and only on iOS the overlay appears panned to the left side:

sorry, I don't know how to create a thumbnail in github

(In the screenshot, the FAB's icon is pulsating, that's why it looks so big).

As mentioned, it is only happening on iOS (on Android it looks fine).

This is my code in case it helps:

DescribedFeatureOverlay(
  featureId: featureId,
  targetColor: localTheme.accentColor,
  tapTarget: Icon(CupertinoIcons.person_add_solid),
  contentLocation: ContentLocation.above,
  title: const Text('More fun with Friends'),
  child: FloatingActionButton(
    child: const Icon(CupertinoIcons.person_add_solid),
    onPressed: ...
  )
  description: Column(
    children: [
      const Text('Add your Friends [...]'),
      Padding(
        padding: const EdgeInsets.symmetric(vertical: 16),
        child: RaisedButton(child: const Text('GOT IT!'), onPressed: () { FeatureDiscovery.completeCurrentStep(context); }),
      )
    ],
  )
)

Also as mentioned, FAB's floatingActionButtonLocation is FloatingActionButtonLocation.centerDocked.

Why is that overlay panned? What can I do? Is that a bug?

Using Flutter 1.22, macOS 10.15.7, Xcode 12.0.1, feature_discovery: ^0.12.0+2

@ayalma
Copy link
Owner

ayalma commented Nov 21, 2020

Try to use overflowMode: OverflowMode.extendBackground, on DescribedFeatureOverlay

@ayalma ayalma closed this as completed Nov 21, 2020
@jagomf
Copy link
Author

jagomf commented Nov 21, 2020

Background gets wider and text can be read, but background circle is still panned to the left side, not centered.

image

@ayalma
Copy link
Owner

ayalma commented Nov 21, 2020

Can you provide some code pls

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

No branches or pull requests

2 participants