Flutter Screen Recording Dialog Press

后端 未结 1 1855
情书的邮戳
情书的邮戳 2020-12-22 07:56

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         


        
相关标签:
1条回答
  • 2020-12-22 08:44

    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.

    0 讨论(0)
提交回复
热议问题