When I am trying to resize the window of any screen, its getting back to the previous screen
Is it because of the large size of application that is causing unwanted navigations or is it the use of layout builder which I am using in every screen as the parent of scaffold
@override
void didChangeDependencies() {
super.didChangeDependencies();
print('MediaQuery size: ${MediaQuery.of(context).size}');
if (MediaQuery.of(context).size != mq) {
print('+++++++++++++++++++++++++');
setState(() {
mq = MediaQuery.of(context).size;
});
}
}`
I tried to debug and for that I used didChangeDependencies() method
still can’t find the reason for unwanted back navigations
New contributor
Saad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1