If you're using NullSafety, then at line 23 add the question mark like : DateTime? backButtonPressedTime. Also at line 39 add exclamation mark like : bool backButton = backbuttonpressedTime == null | CurrentTime.difference(backbuttonpressedTime!) > Duration(seconds: 3); The app won't work otherwise.
@SHAFIulBARI4 жыл бұрын
hey, thank you so much for the video. One question from me: Can I use just flutter's snackbar instead of separate toast package? Please answer if you have time.
@AllTechSavvy4 жыл бұрын
yeah you Can, I Use FlutterToast Because it looks Cool!!
@SHAFIulBARI4 жыл бұрын
@@AllTechSavvy great! actually, I like it too, but the concern is it adds up to the overall app size
@ramiahmed84964 жыл бұрын
you are the best
@sunaarun66034 жыл бұрын
Thanks for this tutorial ..
@AMR-vx6rj4 жыл бұрын
Thank you , Why can't we define the (backButtonPressedTime )variable inside the function?
@shwetalukka5293 жыл бұрын
Thanks for this tutorial. I need help for another logic in my help. Can u help me out?
@AllTechSavvy3 жыл бұрын
Welcome... Yeah, I can tell me About it.....
@shwetalukka5293 жыл бұрын
@@AllTechSavvy can i get help regarding my project actually i m a fresher and working in a project as an intern and i m allotted a project which deadline is already gone. I want to learn things fast actually no time to learn direct implementation so i need help regarding api implementation. Plz give me ur mail id so i can let u know my requirements
@AllTechSavvy3 жыл бұрын
@@shwetalukka529 mail me at sagarshende631@gmail.com
@gourav73154 жыл бұрын
Please make a video about Deep linking and dynamic link
@MoAdel924 жыл бұрын
how to implement this feature on a existing flutter project?
@AllTechSavvy4 жыл бұрын
Just Wrap Willpopscope widget to Root Material App of the existing Project