mirrored_repositories/Interview-Tasks/MusicApp/lib
import 'package:flutter/material.dart';

class FadeInImageWidget extends StatelessWidget {
  const FadeInImageWidget({Key? key, required this.image}) : super(key: key);
  final String image;

  @override
  Widget build(BuildContext context) {
    return FadeInImage(
      placeholder: const AssetImage('assets/images/loading.gif'),
      image: NetworkImage(image),
      imageErrorBuilder: (context, object, trace) =>
          const Center(child: Icon(Icons.info_outline_rounded)),
    );
  }
}
