Skip to content

Commit e940d54

Browse files
authored
Added title (#614)
1 parent 8af3a63 commit e940d54

14 files changed

Lines changed: 35 additions & 12 deletions

animations/lib/src/basics/01_animated_container.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
4848
// the properties of a container. For example, you could use this to design expanding
4949
// and shrinking cards.
5050
return Scaffold(
51-
appBar: AppBar(),
51+
appBar: AppBar(
52+
title: Text('AnimatedContainer'),
53+
),
5254
body: Center(
5355
child: Column(
5456
children: [

animations/lib/src/basics/02_page_route_builder.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class PageRouteBuilderDemo extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return Scaffold(
13-
appBar: AppBar(),
13+
appBar: AppBar(
14+
title: Text('Page 1'),
15+
),
1416
body: Center(
1517
child: RaisedButton(
1618
child: Text('Go!'),
@@ -42,7 +44,9 @@ class _Page2 extends StatelessWidget {
4244
@override
4345
Widget build(BuildContext context) {
4446
return Scaffold(
45-
appBar: AppBar(),
47+
appBar: AppBar(
48+
title: Text('Page 2'),
49+
),
4650
body: Center(
4751
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
4852
),

animations/lib/src/basics/03_animation_controller.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
5353
// when building child widgets. You can also check the status to see if the animation
5454
// has completed.
5555
return Scaffold(
56-
appBar: AppBar(),
56+
appBar: AppBar(
57+
title: Text('Animation Controller'),
58+
),
5759
body: Center(
5860
child: Column(
5961
mainAxisSize: MainAxisSize.min,

animations/lib/src/basics/04_tweens.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class _TweenDemoState extends State<TweenDemo>
3939
@override
4040
Widget build(BuildContext context) {
4141
return Scaffold(
42-
appBar: AppBar(),
42+
appBar: AppBar(
43+
title: Text('Tweens'),
44+
),
4345
body: Center(
4446
child: Column(
4547
mainAxisSize: MainAxisSize.min,

animations/lib/src/basics/05_animated_builder.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class _AnimatedBuilderDemoState extends State<AnimatedBuilderDemo>
3737
@override
3838
Widget build(BuildContext context) {
3939
return Scaffold(
40-
appBar: AppBar(),
40+
appBar: AppBar(
41+
title: Text('AnimatedBuilder'),
42+
),
4143
body: Center(
4244
// AnimatedBuilder handles listening to a given animation and calling the builder
4345
// whenever the value of the animation change. This can be useful when a Widget

animations/lib/src/basics/06_custom_tween.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
4747
Widget build(BuildContext context) {
4848
return Scaffold(
4949
appBar: AppBar(
50+
title: Text('Custom Tween'),
5051
actions: [
5152
MaterialButton(
5253
child: Text(

animations/lib/src/basics/07_tween_sequence.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ class _TweenSequenceDemoState extends State<TweenSequenceDemo>
5959
@override
6060
Widget build(BuildContext context) {
6161
return Scaffold(
62-
appBar: AppBar(),
62+
appBar: AppBar(
63+
title: Text('Tween Sequences'),
64+
),
6365
body: Center(
6466
child: AnimatedBuilder(
6567
animation: animation,

animations/lib/src/basics/08_fade_transition.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _FadeTransitionDemoState extends State<FadeTransitionDemo>
4646
return Scaffold(
4747
appBar: AppBar(
4848
title: Text(
49-
'Animated Widget',
49+
'Fade Transition',
5050
),
5151
),
5252
body: Center(

animations/lib/src/misc/animated_list.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class _AnimatedListDemoState extends State<AnimatedListDemo> {
6868
Widget build(BuildContext context) {
6969
return Scaffold(
7070
appBar: AppBar(
71+
title: Text('AnimatedList'),
7172
actions: <Widget>[
7273
IconButton(
7374
icon: Icon(Icons.add),

animations/lib/src/misc/animated_positioned.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class _AnimatedPositionedDemoState extends State<AnimatedPositionedDemo> {
3838
@override
3939
Widget build(BuildContext context) {
4040
final size = MediaQuery.of(context).size;
41-
final appBar = AppBar();
41+
final appBar = AppBar(title: Text('AnimatedPositioned'));
4242
final topPadding = MediaQuery.of(context).padding.top;
4343
// AnimatedPositioned animates changes to a widget's position within a Stack
4444
return SafeArea(

0 commit comments

Comments
 (0)