'How to display a text in from a texfield at the same time it is being typed in flutter

I am trying to build a custom widget where it has a texfield and a Text widget where the Text widget displays the text in the texfield while the user is typing. Tried to use OnChanged of texfield but only display when the widget is refreshed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source