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

Item Badges alignment isn't right #146

Closed
lucianojung opened this issue Jun 7, 2021 · 5 comments
Closed

Item Badges alignment isn't right #146

lucianojung opened this issue Jun 7, 2021 · 5 comments

Comments

@lucianojung
Copy link

Describe the bug

When I create a ConvexAppBar.badge widget and provide a list of badges they are shown at the center/left bottom of the icon instead of the right upper corner

Environment details

Using Flutter 2.3.0-1.0.pre.20 - channel master with Dart version 2.14.0
Using package version 3.0.0

To Reproduce

  1. Create a stateful widget like shown in this code snippet
  2. Run with edge and Flutter web emulator
  3. if necessary activate tabItem Badges
  4. See error

Expected behavior

I expected the badges to be shown in the right upper corner of each icon

Screenshots

image

@avenwu
Copy link
Contributor

avenwu commented Jun 9, 2021

looks weird. have you checkout the badge sample?

@lucianojung
Copy link
Author

Yes, I used it like this. I'm not changing any alignment only giving BadgesMap using ConvexAppBar.badges

@zamberform
Copy link

Same problem.
Can I control the badge padding/size like StyleProvider(Style)?

@zamberform
Copy link

Oh, it can be.

@lucianojung I think you can use this to adjust somewhere

ConvexAppBar.badge(
    {
     // some data
    }
    badgePadding: // EdgeInsets you know
    badgeMargin: // EdgeInsets you know
);

@avenwu
Copy link
Contributor

avenwu commented Jun 22, 2021

Reopen if there's anything we can do

@avenwu avenwu closed this as completed Jun 22, 2021
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

3 participants