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

3.1.0 #109

Merged
merged 3 commits into from
Apr 11, 2023
Merged

3.1.0 #109

merged 3 commits into from
Apr 11, 2023

Conversation

yadaniyil
Copy link
Collaborator

[3.1.0] - [April 11, 2023]

  • Add BadgeShape.triangle
  • Fix custom shapes deformation depending on the badge content

sawel24 and others added 3 commits April 6, 2023 18:28
* feat: add triangle badge shape

* Add widget tests for triangle badge shape
* Update custom painter for all custom shapes to set fixed-size proportions

* Return default value of child content for verified account widgets

* Resize the shape depending on the child widget in the same proportions

* Fix git check errors

* Resize all types of shapes depending on the size child widget

* Add method for calculate default badge content padding value

* Change method for calculate default badge content padding value

* Add unit tests for calculateBadgeContentPadding method
@yadaniyil yadaniyil merged commit bdc035a into master Apr 11, 2023
@antoinepemeja
Copy link

antoinepemeja commented Apr 14, 2023

Hello, can you check on your side, but since this version something seems broken when we set a padding in the badge style. The badgeContent (with simple Text() widget) is too low.

Without padding in the style:
Capture d’écran 2023-04-14 à 09 20 09

With padding: const EdgeInsets.all(6) in the style:
Capture d’écran 2023-04-14 à 09 19 54

My code:

Badge(
  showBadge: true,
  badgeContent: Text("2"),
  badgeStyle: badges.BadgeStyle(
    elevation: 0,
    padding: const EdgeInsets.all(6)),
  child: child,
)

yadaniyil pushed a commit that referenced this pull request Apr 14, 2023
This reverts commit bdc035a
yadaniyil added a commit that referenced this pull request Apr 14, 2023
* Revert "3.1.0 (#109)"

This reverts commit bdc035a

* Version update to 3.1.1 and changelog update

---------

Co-authored-by: Daniyil Yakovlev <[email protected]>
yadaniyil added a commit that referenced this pull request Apr 14, 2023
* fix: revert commit 3.1.0 (#112)

* Revert "3.1.0 (#109)"

This reverts commit bdc035a

* Version update to 3.1.1 and changelog update

---------

Co-authored-by: Daniyil Yakovlev <[email protected]>

* fix: remove .flutter-plugin-dependencies from .gitignore

---------

Co-authored-by: Vitaliy Hnidenko <[email protected]>
yadaniyil added a commit that referenced this pull request Aug 28, 2023
* fix: revert commit 3.1.0 (#112)

* Revert "3.1.0 (#109)"

This reverts commit bdc035a

* Version update to 3.1.1 and changelog update

---------

Co-authored-by: Daniyil Yakovlev <[email protected]>

* fix: remove .flutter-plugin-dependencies from .gitignore

* Version 3.1.2

---------

Co-authored-by: Vitaliy Hnidenko <[email protected]>
yadaniyil added a commit that referenced this pull request Dec 1, 2023
* Version 3.1.2 (#118)

* fix: revert commit 3.1.0 (#112)

* Revert "3.1.0 (#109)"

This reverts commit bdc035a

* Version update to 3.1.1 and changelog update

---------

Co-authored-by: Daniyil Yakovlev <[email protected]>

* fix: remove .flutter-plugin-dependencies from .gitignore

* Version 3.1.2

---------

Co-authored-by: Vitaliy Hnidenko <[email protected]>

* fix: Fix example android for flutter 3.16

---------

Co-authored-by: Danylo <[email protected]>
Co-authored-by: Vitaliy Hnidenko <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants