yako-dev / flutter_badges

A flutter package for creating badges.

Home Page:https://pub.dev/packages/badges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

86linksrain opened this issue · 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....