The owl’s description text remains hidden until the user clicks the
Show details button.

When the user clicks the Show details button,
the owl’s description text fades in.

1. Pick a widget property to animate

To create a fade-in effect, you can animate the opacity property using the
AnimatedOpacity widget. Change the Column widget to an
AnimatedOpacity widget:

{opacity1 → opacity2}/lib/main.dart

@@ -2,6 +2,8 @@

2
2

// Use of this source code is governed by a BSD-style license

3
3

// that can be found in the LICENSE file.

+
            // ignore_for_file: missing_required_argument

4
6

import 'package:flutter/material.dart';

5
7