Animate opacity with AnimatedOpacity widget – Pick a widget property to animate

@override

Widget build(BuildContext context) {

 return ListView(children: <Widget>[

  Image.network(owlUrl),

  TextButton(

   child: const Text(

    ‘Show Details’,

    style: TextStyle(color: Colors.blueAccent),

   ),

   onPressed: () => {},

  ),

  const Column(

   children: [

    Text(‘Type: Owl’),

    Text(‘Age: 39’),

    Text(‘Employment: None’),

   ],

  ),

  AnimatedOpacity(

   child: const Column(

    children: [

     Text(‘Type: Owl’),

     Text(‘Age: 39’),

     Text(‘Employment: None’),

    ],

   ),

  ),

 ]);

}

Leave a comment

Your email address will not be published. Required fields are marked *