diff --git a/lib/08/02/main.dart b/lib/08/02/main.dart index 0e745f2..0ab82d3 100644 --- a/lib/08/02/main.dart +++ b/lib/08/02/main.dart @@ -60,14 +60,14 @@ class HomePage extends StatelessWidget { ), body: Center( child: ElevatedButton( - onPressed: ()=>toPageB(context), + onPressed: ()=>toPageA(context), child: const Text('Push A'), ), ), ); } - void toPageB(BuildContext context){ + void toPageA(BuildContext context){ Navigator.of(context).pushNamed('/a'); } }