Skip to content

Commit 77382e3

Browse files
committed
issue fixed in gf-buttons
1 parent 9ead99f commit 77382e3

File tree

2 files changed

+821
-56
lines changed

2 files changed

+821
-56
lines changed

lib/components/badge/gf_badge.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ class _GFBadgeState extends State<GFBadge> {
6868
super.initState();
6969
}
7070

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+
7181
@override
7282
Widget build(BuildContext context) {
7383
final BorderSide shapeBorder = widget.border != null

0 commit comments

Comments
 (0)