make unread badge max out at 9999+ not 99+
This commit is contained in:
1 parent
411cd3f8d2
commit
f9cb0c80a5
1 file changed
+1
-1
@@ -7,7 +7,7 @@ class UnreadBadge extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final display = count > 99 ? '99+' : count.toString();
|
||||
final display = count > 9999 ? '9999+' : count.toString();
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
|
||||
Reference in new issue
Block a user