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
@@ -59,24 +59,24 @@ Sometimes you may want to use chip but it's too big, even if set padding to zero
59
59
## Custom Usage
60
60
There are several options that allow for more control:
61
61
62
-
|Properties | Description |
63
-
|--------------|-----------------|
64
-
|`Widget badgeContent`| The content of badge. Usually `Text` or `Icon`. |
65
-
|`Color badgeColor`| Background color of the badge. |
66
-
|`Widget child`| The main widget. By default it's below the red badge. Usually `Icon`, `IconButton`, `Text` or button. |
67
-
|`double elevation`| Shadow of the badge. |
68
-
|`Gradient gradient`| Gradient color for the badge content. |
69
-
|`bool toAnimate`| Whether animate badge when badge content changed or not. |
70
-
|`BadgePosition position`| Can be one of `BadgePosition.topStart()`, `BadgePosition.topEnd()`, `BadgePosition.bottomStart()`, `BadgePosition.bottomEnd()`. Sometimes you want to create unique badge position or create new one manually. For this use `BadgePosition.topEnd(top: -12, end: -20)` or `BadgePosition(start, top, end, bottom)`. |
71
-
|`BadgeShape shape`|`BadgeShape.circle` or `BadgeShape.square`. You can use `borderRadius` to change border radius of badge of you use square `BadgeShape.square`. |
72
-
|`BorderRadiusGeometry borderRadius`| Border radius of badge. Applies only if `BadgeShape.square` is used. |
73
-
|`EdgeInsetsGeometry padding`| The padding of badge content. |
74
-
|`Duration animationDuration`| The duration of badge animation when badge content is changed. |
75
-
|`BadgeAnimationType animationType`| Can be one of `BadgeAnimationType.slide`, `BadgeAnimationType.scale` or `BadgeAnimationType.fade`. |
76
-
|`bool showBadge`| Hide or show badge with animation using bool flag. |
77
-
|`AlignmentGeometry alignment`| Alignment of the whole widget |
78
-
|`bool ignorePointer`| Enable or disable (default) ignore pointer option |
79
-
|`BorderSide borderSide`| Adds a border to the badge |
|`Widget badgeContent`| The content of badge. Usually `Text` or `Icon`.|
65
+
|`Color badgeColor`| Background color of the badge.|
66
+
|`Widget child`| The main widget. By default it's below the red badge. Usually `Icon`, `IconButton`, `Text` or button.|
67
+
|`double elevation`| Shadow of the badge.|
68
+
|`Gradient gradient`| Gradient color for the badge content.|
69
+
|`bool toAnimate`| Whether animate badge when badge content changed or not.|
70
+
|`BadgePosition position`| Can be one of `BadgePosition.topStart()`, `BadgePosition.topEnd()`, `BadgePosition.bottomStart()`, `BadgePosition.bottomEnd()`. Sometimes you want to create unique badge position or create new one manually. For this use `BadgePosition.topEnd(top: -12, end: -20)` or `BadgePosition(start, top, end, bottom)`. |
71
+
|`BadgeShape shape`|`BadgeShape.circle` or `BadgeShape.square`. You can use `borderRadius` to change border radius of badge of you use square `BadgeShape.square`.|
72
+
|`BorderRadiusGeometry borderRadius`| Border radius of badge. Applies only if `BadgeShape.square` is used. |
73
+
|`EdgeInsetsGeometry padding`| The padding of badge content.|
74
+
|`Duration animationDuration`| The duration of badge animation when badge content is changed.|
75
+
|`BadgeAnimationType animationType`| Can be one of `BadgeAnimationType.slide`, `BadgeAnimationType.scale` or `BadgeAnimationType.fade`.|
76
+
|`bool showBadge`| Hide or show badge with animation using bool flag.|
77
+
|`AlignmentGeometry alignment`| Alignment of the whole widget|
78
+
|`bool ignorePointer`| Enable or disable (default) ignore pointer option|
79
+
|`BorderSide borderSide`| Adds a border to the badge|
0 commit comments