Future<bool> onBackPressed() async { if (await controllerCanGoBack()) { controllerGoBack(); return false; } return true; }