Hint: Do not perform a setState unless the String has been changed. Also for production purposes consider a BloC or RxDart or any other state management pattern.
I have used setState only when string value has changed, & my entire program for initial example is stateless. For production purposes I also recommend a BloC or RxDart or any other state management technique.
@FlutterTeacher can you tell me? How can i animate to a specific index? Suppose i have 10 items in the list view and i want to move to the 6th item based on certain conditions? Is it possible with the scroll controller?
@@FlutterTeacher can you tell me? How can i animate to a specific index? Suppose i have 10 items in the list view and i want to move to the 6th item based on certain conditions? Is it possible with the scroll controller?