Answers for "onbackpressed in flutter"

0

onbackpressed in flutter

WillPopScope(
  onWillPop: () async {
    // You can do some work here.
    // Returning true allows the pop to happen, returning false prevents it.
    return true;
  },
  child: ... // Your Scaffold goes here.
);
Posted by: Guest on April-27-2022

Code answers related to "Dart"

Browse Popular Code Answers by Language