I\'m new to flutter development, and find it a bit frustrating in iOS when you have a navigation drawer and when you swipe to open it, it\'ll perform a Navigation.of(c
WillPopScope
is the correct way to do this.
(it seems too complicated... it should be easier... like a setting on the root app).
It is not complicated. It's a one liner :
WillPopScope(
onWillPop: () async => false,
child:
)
A configuration file would make things more complicated as it's harder to read and maintain.
And remember that in flutter everything is a widget not just half of them. Authentification, configurations, everything.