Flutter pop返回上一级黑屏

MaterialApp()的问题,只有main.dart设置MaterialApp就好,其他页面不需要设置MaterialApp,直接返回Scaffold即可

你可能感兴趣的:(Flutter pop返回上一级黑屏)