Cannot get DropdownButton inside Dialog to update to new value on changed/selected
Here is what I have. String selected = "ONE", final List<DropdownMenuItem<String>> types = [ DropdownMenuItem(value: "ONE", child: Text("ex1")), DropdownMenuItem(value: "TWO", child: Text("ex2")), … ]; @override Widget build(context) => Scaffold( body: Column( … TextButton( onPressed: () { context: context, builder: (context) => AlertDialog( content: SizedBox( … DropdownButton( items: types, value: selected, onChanged: (String? value) { selected… Read More Cannot get DropdownButton inside Dialog to update to new value on changed/selected