mirror of
https://github.com/flutter/samples.git
synced 2026-05-20 14:07:34 +00:00
Added title (#614)
This commit is contained in:
@@ -10,7 +10,9 @@ class PageRouteBuilderDemo extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('Page 1'),
|
||||
),
|
||||
body: Center(
|
||||
child: RaisedButton(
|
||||
child: Text('Go!'),
|
||||
@@ -42,7 +44,9 @@ class _Page2 extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('Page 2'),
|
||||
),
|
||||
body: Center(
|
||||
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user