Breaking google testing 
revert of: https://github.com/flutter/flutter/pull/120385
b/295065534
This commit is contained in:
Jesús S Guerrero
2023-08-08 16:16:52 -07:00
committed by GitHub
parent b77b149df6
commit 2728ba0f23
36 changed files with 303 additions and 3227 deletions

View File

@@ -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(