Breaking google testing revert of: https://github.com/flutter/flutter/pull/120385 b/295065534
This commit is contained in:
@@ -71,10 +71,14 @@ class _HomeState extends State<Home> with TickerProviderStateMixin<Home> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return NavigatorPopHandler(
|
||||
onPop: () {
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
final NavigatorState navigator = navigatorKeys[selectedIndex].currentState!;
|
||||
if (!navigator.canPop()) {
|
||||
return true;
|
||||
}
|
||||
navigator.pop();
|
||||
return false;
|
||||
},
|
||||
child: Scaffold(
|
||||
body: SafeArea(
|
||||
|
||||
Reference in New Issue
Block a user