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

Have the SpeechBubble display above the highlighted area #2

Closed
lunaticcoding opened this issue Apr 8, 2020 · 3 comments
Closed

Have the SpeechBubble display above the highlighted area #2

lunaticcoding opened this issue Apr 8, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@lunaticcoding
Copy link

Is your feature request related to a problem? Please describe.
I need the Bubble to be displayed above the widget I want to highlight. Changing the direction property in the RelativeBubbleSlideChild should place it above right? :S But it does not. Otherwise, I simply used the code from the example.

Describe the solution you'd like
A way to put the SpeechBubble above the widget.

Describe alternatives you've considered
Using another plugin, but that one has other issues...

Additional context
Add any other context or screenshots about the feature request here.

@lunaticcoding lunaticcoding added the enhancement New feature or request label Apr 8, 2020
@Skyost
Copy link
Owner

Skyost commented Apr 8, 2020

You could use something like this :

  RelativeBubbleSlide(
    widgetKey: widgetKey,
    child: RelativeBubbleSlideChild(
      direction: AxisDirection.up,
      widget: Padding(
        padding: EdgeInsets.only(bottom: 2),
        child: SpeechBubble(
          nipLocation: NipLocation.BOTTOM,
          color: Colors.blue,
          child: Padding(
            padding: EdgeInsets.all(10),
            child: Text('Yo !'),
          ),
        ),
      ),
    ),
  );

@lunaticcoding
Copy link
Author

lunaticcoding commented Apr 13, 2020

@Skyost That is pretty much what I used. Did not work for me. AxisDirection.down, gave me a small margin between the widget I want to highlight and the bubble (placing the bubble below the widget)

AxisDirection.up, simply removed the margin but still places the bubble below the widget I want to hightlight

@Skyost Skyost added bug Something isn't working and removed enhancement New feature or request labels Apr 13, 2020
@Skyost Skyost closed this as completed in f725c72 Apr 14, 2020
@Skyost
Copy link
Owner

Skyost commented Apr 14, 2020

Fixed 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants