0

I'm trying to generate a Flutter app, to create a stateful text field that I can call from other class (passing a name of the field and a limit for the field)., but I don't know how to do that,

Basically, I'm trying to be concise and reduce the amount of code for (variables)consecutive text fields.

Could someone help me?

1 Answers1

1

In Flutter, you don't usually work like that.

Instead, use state management classes to store any manage state information, and provide a Stream instance that is then used to update your widgets (TextField) when state changes.

Ber
  • 40,356
  • 16
  • 72
  • 88