How can I detect which button is pressed \"start now\" or \"cancel\" to change some design by pressing them. The dialog open by this line of code,
FlutterScr
Have some boolen variable in your state. and on click of start now call setState function as below :
setState(() { startRecording = true; })
where you want to show changes check whether it has become true or not. On true do the changes otherwise nothing will happen.