Visitar URL original
[animations] Update demo home page (#78) · flutter/packages@ddcbd9d · GitHub
Skip to content

Commit ddcbd9d

Browse files
author
Shi-Hao Hong
authored
[animations] Update demo home page (#78)
* Update animations demo home page
1 parent e5f7aba commit ddcbd9d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎packages/animations/example/lib/main.dart‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ class _TransitionsHomePageState extends State<_TransitionsHomePage> {
4646
children: <Widget>[
4747
_TransitionListTile(
4848
title: 'Shared Axis',
49-
subtitle: 'Page transition where outgoing and incoming '
50-
'elements share a fade transition',
49+
subtitle: 'SharedAxisTransition',
5150
onTap: () {
5251
Navigator.of(context).push(
5352
MaterialPageRoute<void>(
@@ -60,8 +59,7 @@ class _TransitionsHomePageState extends State<_TransitionsHomePage> {
6059
),
6160
_TransitionListTile(
6261
title: 'Fade Through',
63-
subtitle: 'Page transition outgoing elements first fade '
64-
'out and then incoming elements fade in while scaling',
62+
subtitle: 'FadeThroughTransition',
6563
onTap: () {
6664
Navigator.of(context).push(
6765
MaterialPageRoute<void>(
@@ -87,9 +85,7 @@ class _TransitionsHomePageState extends State<_TransitionsHomePage> {
8785
),
8886
_TransitionListTile(
8987
title: 'Fade',
90-
subtitle: 'The fade pattern is used for UI elements that '
91-
'enter or exit within the screen bounds. Elements '
92-
'that enter use a quick fade in and they scale.',
88+
subtitle: 'FadeScaleTransition',
9389
onTap: () {
9490
Navigator.of(context).push(
9591
MaterialPageRoute<void>(
@@ -142,7 +138,6 @@ class _TransitionListTile extends StatelessWidget {
142138
Widget build(BuildContext context) {
143139
return ListTile(
144140
contentPadding: const EdgeInsets.symmetric(
145-
vertical: 10.0,
146141
horizontal: 15.0,
147142
),
148143
leading: Container(

0 commit comments

Comments
 (0)