When i press the back-button of the device the app close, so I want to config the back-button of the device to go back in sequences pages not to exit .Thank you
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Welcome to Flutter',
home: Scaffold(
body: WebView(
initialUrl: "https://www.carrefourjordan.com",
javascriptMode: JavascriptMode.unrestricted,
),
),
);
}
}
hi there to manage back button press use Willpopscope by wraping scaffold inside willpopscope and use onwillpop property