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,
FlutterScreenRecording.startRecordScreen("file.mp4");
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,
FlutterScreenRecording.startRecordScreen("file.mp4");
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.
© 2022 - 2024 — McMap. All rights reserved.