We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ead99f commit 77382e3Copy full SHA for 77382e3
lib/components/badge/gf_badge.dart
@@ -68,6 +68,16 @@ class _GFBadgeState extends State<GFBadge> {
68
super.initState();
69
}
70
71
+ @override
72
+ void didUpdateWidget(GFBadge oldWidget) {
73
+ color = widget.color;
74
+ textColor = widget.textColor;
75
+ child = widget.text != null ? Text(widget.text ?? '') : widget.child;
76
+ counterShape = widget.shape;
77
+ size = widget.size;
78
+ super.didUpdateWidget(oldWidget);
79
+ }
80
+
81
@override
82
Widget build(BuildContext context) {
83
final BorderSide shapeBorder = widget.border != null
0 commit comments