You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Configuration](#configuration"Configuration for app icons")
12
+
-[Badge Count](#badge-count"Badge Count")
12
13
13
14
<aname="introduction"></a>
14
15
<br>
@@ -90,3 +91,24 @@ You can also modify the settings when generating your app icons.
90
91
Inside the `pubspec.yaml` file, look for the `flutter_icons` section, and here you can make changes to the configuration.
91
92
92
93
Check out the official <ahref="https://pub.dev/packages/flutter_launcher_icons"target="_BLANK">flutter_launcher_icons</a> library to see what's possible.
94
+
95
+
<aname="badge-count"></a>
96
+
<br>
97
+
98
+
## Badge Count
99
+
100
+
You can also add a badge count to your app icon. This is the little red circle with a number in it that appears on the app icon.
101
+
102
+
To set the badge count, use the below code snippet.
103
+
104
+
```dart
105
+
setBadgeNumber(5);
106
+
```
107
+
108
+
This will set the badge count to 5.
109
+
110
+
To remove the badge count, use the below code snippet.
0 commit comments