Flutter – Android back button closes the app instead of popping the current route
Using the new Navigator 2.0 API for navigation in my Flutter app, I have the following simple version of my code: import 'package:flutter/material.dart'; void main() { runApp(const MainApp()); } class MainApp extends StatelessWidget { const MainApp({super.key}); @override Widget build(BuildContext context)…