Answers for "flutter willpopscope return value"

0

flutter willpopscope return value

final return = Navigator.of(context).push(MaterialPageRoute<bool>(
    builder: (BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text("New Page"),
        ),
        body: WillPopScope(
          onWillPop: () {
             Navigator.pop(context, false);
             return new Future(() => false);
          },
          child: newPageStuff(),
        ),
      );
    },
));
Posted by: Guest on June-16-2020

Code answers related to "flutter willpopscope return value"

Browse Popular Code Answers by Language