1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-02 09:43:05 +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

@@ -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> {

View File

@@ -9,7 +9,7 @@ class AnimationControllerDemo extends StatefulWidget {
static const String routeName = '/basics/animation_controller';
@override
_AnimationControllerDemoState createState() =>
State<AnimationControllerDemo> createState() =>
_AnimationControllerDemoState();
}

View File

@@ -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>

View File

@@ -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>

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',
),
),
],
),

View File

@@ -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>

View File

@@ -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>