Record the problems encountered in the development of flutter, realize that it does not return to the previous page, but can return to the previous page

a->b->c->b, then b will return to a

Navigator.of(context).popUntil((route) => route.settings.name.startsWith('/user/orders/orderComf'));

Jump and close the current page

Navigator.of(context).pushReplacement(
              MaterialPageRoute(builder: (context)=>UploadProoflPage(res['data']['id']))
          );

Guess you like

Origin blog.csdn.net/qq_42944436/article/details/108339045