Closed Albert221 closed 2 years ago
The current implementation adds the same listener on each update to the widget when focusNode is null. This change fixes it.
focusNode
This is exactly what Flutter does in the framework in many places:
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/text_field.dart#L959-L962
The current implementation adds the same listener on each update to the widget when
focusNode
is null. This change fixes it.This is exactly what Flutter does in the framework in many places:
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/text_field.dart#L959-L962