|
|
@ -10,7 +10,9 @@ class PageRouteBuilderDemo extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(),
|
|
|
|
appBar: AppBar(
|
|
|
|
|
|
|
|
title: Text('Page 1'),
|
|
|
|
|
|
|
|
),
|
|
|
|
body: Center(
|
|
|
|
body: Center(
|
|
|
|
child: RaisedButton(
|
|
|
|
child: RaisedButton(
|
|
|
|
child: Text('Go!'),
|
|
|
|
child: Text('Go!'),
|
|
|
@ -42,7 +44,9 @@ class _Page2 extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(),
|
|
|
|
appBar: AppBar(
|
|
|
|
|
|
|
|
title: Text('Page 2'),
|
|
|
|
|
|
|
|
),
|
|
|
|
body: Center(
|
|
|
|
body: Center(
|
|
|
|
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
|
|
|
|
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
|
|
|
|
),
|
|
|
|
),
|
|
|
|