Answers for "flutter back button with data"

0

flutter back button with data

WillPopScope(
      onWillPop: () async {
        Navigator.pop(context, 'Pass Your Data Here');
        return false;
      },
      child: // Your Widget
);
Posted by: Guest on September-10-2021
-1

send data back on back press flutter

leading: IconButton(icon:Icon(Icons.chevron_left),onPressed:() => Navigator.pop(context, false),),)
Posted by: Guest on January-02-2021

Browse Popular Code Answers by Language