From 5d42d761f98b71e760908c5bb65e4aff28618920 Mon Sep 17 00:00:00 2001 From: Simon Leier Date: Thu, 30 May 2019 16:56:47 +0200 Subject: [PATCH] Fix group issue --- lib/src/auto_size_text.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/auto_size_text.dart b/lib/src/auto_size_text.dart index 542faa1..454140c 100644 --- a/lib/src/auto_size_text.dart +++ b/lib/src/auto_size_text.dart @@ -220,7 +220,7 @@ class _AutoSizeTextState extends State { void didUpdateWidget(AutoSizeText oldWidget) { super.didUpdateWidget(oldWidget); - if (widget.group != null) { + if (widget.group != null && oldWidget.group != widget.group) { widget.group._register(this); } }