Each item in the listview I will create is stateful.
For example, each row has a TextField and a Button, and the Button should only be activated when there is input text.
Data class
class Row {
String text;
bool get enabled => text.isNotEmpty;
}
In a project that uses GetX, when creating an item widget for a listview, should it be created as a StatefulWidget? Or should I create a StatelessWidget and declare a Controller of GetX on each row to manage the state?
Which method is better? Or is there a better way?