1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
This commit is contained in:
Brett Morgan
2022-05-11 12:48:11 -07:00
committed by GitHub
parent fb00d0a102
commit ccd68f34e2
242 changed files with 1719 additions and 1430 deletions

View File

@@ -20,7 +20,7 @@ class CustomTweenDemo extends StatefulWidget {
static const String routeName = '/basics/custom_tweens';
@override
_CustomTweenDemoState createState() => _CustomTweenDemoState();
State<CustomTweenDemo> createState() => _CustomTweenDemoState();
}
class _CustomTweenDemoState extends State<CustomTweenDemo>
@@ -51,11 +51,6 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
title: const Text('Custom Tween'),
actions: [
MaterialButton(
child: Text(
controller.status == AnimationStatus.completed
? 'Delete Essay'
: 'Write Essay',
),
textColor: Colors.white,
onPressed: () {
if (controller.status == AnimationStatus.completed) {
@@ -68,6 +63,11 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
});
}
},
child: Text(
controller.status == AnimationStatus.completed
? 'Delete Essay'
: 'Write Essay',
),
),
],
),