mirror of
https://github.com/flutter/samples.git
synced 2026-04-02 09:43:05 +00:00
Beta (#1234)
This commit is contained in:
@@ -15,7 +15,7 @@ class AnimatedContainerDemo extends StatefulWidget {
|
||||
static String routeName = '/basics/01_animated_container';
|
||||
|
||||
@override
|
||||
_AnimatedContainerDemoState createState() => _AnimatedContainerDemoState();
|
||||
State<AnimatedContainerDemo> createState() => _AnimatedContainerDemoState();
|
||||
}
|
||||
|
||||
class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
|
||||
|
||||
@@ -9,7 +9,7 @@ class AnimationControllerDemo extends StatefulWidget {
|
||||
static const String routeName = '/basics/animation_controller';
|
||||
|
||||
@override
|
||||
_AnimationControllerDemoState createState() =>
|
||||
State<AnimationControllerDemo> createState() =>
|
||||
_AnimationControllerDemoState();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class TweenDemo extends StatefulWidget {
|
||||
static const String routeName = '/basics/tweens';
|
||||
|
||||
@override
|
||||
_TweenDemoState createState() => _TweenDemoState();
|
||||
State<TweenDemo> createState() => _TweenDemoState();
|
||||
}
|
||||
|
||||
class _TweenDemoState extends State<TweenDemo>
|
||||
|
||||
@@ -9,7 +9,7 @@ class AnimatedBuilderDemo extends StatefulWidget {
|
||||
static const String routeName = '/basics/animated_builder';
|
||||
|
||||
@override
|
||||
_AnimatedBuilderDemoState createState() => _AnimatedBuilderDemoState();
|
||||
State<AnimatedBuilderDemo> createState() => _AnimatedBuilderDemoState();
|
||||
}
|
||||
|
||||
class _AnimatedBuilderDemoState extends State<AnimatedBuilderDemo>
|
||||
|
||||
@@ -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',
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -9,7 +9,7 @@ class TweenSequenceDemo extends StatefulWidget {
|
||||
static const String routeName = '/basics/chaining_tweens';
|
||||
|
||||
@override
|
||||
_TweenSequenceDemoState createState() => _TweenSequenceDemoState();
|
||||
State<TweenSequenceDemo> createState() => _TweenSequenceDemoState();
|
||||
}
|
||||
|
||||
class _TweenSequenceDemoState extends State<TweenSequenceDemo>
|
||||
|
||||
@@ -11,7 +11,7 @@ class FadeTransitionDemo extends StatefulWidget {
|
||||
static const String routeName = '/basics/fade_transition';
|
||||
|
||||
@override
|
||||
_FadeTransitionDemoState createState() => _FadeTransitionDemoState();
|
||||
State<FadeTransitionDemo> createState() => _FadeTransitionDemoState();
|
||||
}
|
||||
|
||||
class _FadeTransitionDemoState extends State<FadeTransitionDemo>
|
||||
|
||||
Reference in New Issue
Block a user