Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending your application to background when back button is pressed in flutter

Tags:

flutter

dart

Flutter code to send the app to background when back button is pressed. I want to minimize the app to background when i click the back button like home button does to apps and now when i click the back button it kills the app. I am using willPopScope to get it work but no help

like image 396
Punk420g Avatar asked Apr 05 '19 15:04

Punk420g


1 Answers

I found this package on pub.dev and it worked well for me and it's easy to use

https://pub.dev/packages/move_to_background

like image 72
SuperCode Avatar answered Oct 13 '22 00:10

SuperCode