Drop down button in flutter not switching values to the selected value

Posted by Editorial Staff | Updated on

Drop down button in flutter not switching values to the selected value. The error is because you are declaring a method variable newValue you must declare that variable as global inside your StatefulWidget.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers