INNER CODE UNIT · Dart
_FadeAnimationState
afgprogrammer/Flutter-examples · lib/fade_animation.dart:11
class _FadeAnimationState extends State<FadeAnimation> {
bool _visible = true;
@override
Widget build(BuildContext context) {
return Container(
height: 300,
child: Column(
children: [
AnimatedOpacity(
opacity: _visible ? 1 : 0,
duration: Duration(milliseconds: 500),
child: Container(
width: 200,
height: 100,
color: Colors.orangeAccent,
),
),