Skip to content

Commit

Permalink
Fix group issue
Browse files Browse the repository at this point in the history
  • Loading branch information
simc committed May 30, 2019
1 parent 22d0adb commit 5d42d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/auto_size_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class _AutoSizeTextState extends State<AutoSizeText> {
void didUpdateWidget(AutoSizeText oldWidget) {
super.didUpdateWidget(oldWidget);

if (widget.group != null) {
if (widget.group != null && oldWidget.group != widget.group) {
widget.group._register(this);
}
}
Expand Down

0 comments on commit 5d42d76

Please sign in to comment.