2022年6月29日星期三

wait until poped back (when use Navigator push)

onPressed: () async {

  var value = await Navigator.push(

    context,

    MaterialPageRoute(builder: (context) => const SecondPage()),

  );

  print('backed');


} 

沒有留言:

發佈留言