Flutter Screen Recording Dialog Press
Asked Answered
D

1

0

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");

enter image description here

Duplessis answered 21/4, 2020 at 7:25 Comment(0)
H
0

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.

Horticulture answered 22/4, 2020 at 8:3 Comment(4)
is there any callBack method for onClick of start now and cancel?Duplessis
yes you can set on press for both of them separetely for start now a different function will be called and for cancel most likely you will pop of the dialog box.Horticulture
Can you please send me those callBack methods ?Duplessis
@ZeeshanFareed you can check the example here woolha.com/tutorials/flutter-video-capture-example for complete recordingHorticulture

© 2022 - 2024 — McMap. All rights reserved.