1
0
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:
Alabhya
2020-12-15 11:31:15 +05:30
committed by GitHub
parent 8af3a63da3
commit e940d54618
14 changed files with 35 additions and 12 deletions

View File

@@ -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),
),