fix pushAndRemoveUntil demo
This commit is contained in:
@@ -60,14 +60,14 @@ class HomePage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
onPressed: ()=>toPageB(context),
|
onPressed: ()=>toPageA(context),
|
||||||
child: const Text('Push A'),
|
child: const Text('Push A'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void toPageB(BuildContext context){
|
void toPageA(BuildContext context){
|
||||||
Navigator.of(context).pushNamed('/a');
|
Navigator.of(context).pushNamed('/a');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user