yako-dev/flutter_badges

same code ,but,work in android / ios show different....

86linksrain opened this issue · 1 comments

image

Badge( position: BadgePosition.topEnd(top: -7, end: -7), showBadge: true, badgeContent: Text( '1',//'12' or '123' also different in ios... style: TextStyle( fontSize: 10, height: 1, color: Colors.white), ), badgeStyle: BadgeStyle( shape: BadgeShape.square, badgeColor: Color(0xFFF82929), padding: EdgeInsets.symmetric(horizontal: 4,vertical: 2), borderRadius: BorderRadius.circular(14), elevation: 0, ), child: Placeholder( fallbackHeight: 36, fallbackWidth: 36, )),
**badges: ^3.1.0
Platform:
Device information:

Description

in android device it worked ok,but in ios,the number show only half when use '1'(or 2/3/4/5...or some only one num...)

i don't know what happend.....

also i found the position also diferent,for example '1'、'11'、'111' ,in android device the badge have a center position,but in ios device,it will move to bottomleft....

fixed....