We need close one screen and open a second screen. And show snackbar on the second screen from first screen.
I tried to use Navigator.push
, but this screen is already open and we have this error
Bad state: Stream has already been listened to.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…