flutter_badges icon indicating copy to clipboard operation
flutter_badges copied to clipboard

the border not anti-aliasing?

Open eggcaker opened this issue 3 years ago • 6 comments

Environment

Package version: 3.0.2 Platform: Android Device information: Android-12

Description

Check the screenshot, i have define a badge with a border(2), the border color is white, seem out side the border still has a very thin border, and color same as badget color. even the example app in the repo has same issue,( the yako app badge)

Images

1600662e5ee8dacd9589ac3c11effbc

Not sure it's anti-aliasing related issue

eggcaker avatar Jan 28 '23 09:01 eggcaker

Hey @eggcaker, please try this version of badges:

badges:
    git:
      url: https://github.com/yako-dev/flutter_badges
      ref: 98-fix/border-clip-behavior

Here is clipBehavior: Clip.hardEdge is applied. Please tell me if it's better.

yadaniyil avatar Feb 16 '23 19:02 yadaniyil

@yadaniyil thanks , but seems looks like before 微信图片_20230217065913

eggcaker avatar Feb 16 '23 23:02 eggcaker

yes same here.. image

dawarepramod4 avatar Jul 27 '23 20:07 dawarepramod4

Hey @eggcaker and @dawarepramod4 , please try this version of badges:

badges:
    git:
      url: https://github.com/yako-dev/flutter_badges
      ref: 98-fix/border-stroke-align

Here is changed strokeAlign. Please tell me if it's better.

M-ixai-L avatar Nov 24 '23 19:11 M-ixai-L

3.1.2: image

98-fix/border-stroke-align not changing anything: image

image

issdn avatar Feb 06 '24 10:02 issdn

I fixed this by setting

borderSide: BorderSide(strokeAlign: 1)

in the BadgeStyle

fabianhepke avatar Feb 20 '24 13:02 fabianhepke