mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Added title (#614)
This commit is contained in:
@@ -48,7 +48,9 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
|
||||
// the properties of a container. For example, you could use this to design expanding
|
||||
// and shrinking cards.
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('AnimatedContainer'),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
@@ -53,7 +53,9 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
|
||||
// when building child widgets. You can also check the status to see if the animation
|
||||
// has completed.
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('Animation Controller'),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
@@ -39,7 +39,9 @@ class _TweenDemoState extends State<TweenDemo>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('Tweens'),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
@@ -37,7 +37,9 @@ class _AnimatedBuilderDemoState extends State<AnimatedBuilderDemo>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('AnimatedBuilder'),
|
||||
),
|
||||
body: Center(
|
||||
// AnimatedBuilder handles listening to a given animation and calling the builder
|
||||
// whenever the value of the animation change. This can be useful when a Widget
|
||||
|
||||
@@ -47,6 +47,7 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Custom Tween'),
|
||||
actions: [
|
||||
MaterialButton(
|
||||
child: Text(
|
||||
|
||||
@@ -59,7 +59,9 @@ class _TweenSequenceDemoState extends State<TweenSequenceDemo>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
appBar: AppBar(
|
||||
title: Text('Tween Sequences'),
|
||||
),
|
||||
body: Center(
|
||||
child: AnimatedBuilder(
|
||||
animation: animation,
|
||||
|
||||
@@ -46,7 +46,7 @@ class _FadeTransitionDemoState extends State<FadeTransitionDemo>
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
'Animated Widget',
|
||||
'Fade Transition',
|
||||
),
|
||||
),
|
||||
body: Center(
|
||||
|
||||
Reference in New Issue
Block a user