content: import 'package:cached_network_image/cached_network_image.dart';
  import 'package:flutter/material.dart';
  import 'package:shared/shared.dart';
  
  class CardCrew extends StatelessWidget {
    final String image, name;
  
    const CardCrew({Key key, this.image, this.name}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return Container(
        width: Sizes.width(context) / 4.4,
        child: Card(
          shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(Sizes.dp10(context))),
          child: ClipRRect(
            borderRadius: BorderRadius.all(Radius.circular(Sizes.dp10(context))),
            child: GridTile(
              child: CachedNetworkImage(
                imageUrl: image.imageOriginal,
                height: Sizes.width(context) / 3,
                width: Sizes.width(context) / 4.4,
                fit: BoxFit.cover,
                placeholder: (context, url) => LoadingIndicator(),
                errorWidget: (context, url, error) => ErrorImage(),
              ),
              footer: Container(
                color: ColorPalettes.whiteSemiTransparent,
                padding: EdgeInsets.all(Sizes.dp5(context)),
                child: Text(
                  name,
                  textAlign: TextAlign.center,
                  overflow: TextOverflow.ellipsis,
                  style: TextStyle(
                    color: ColorPalettes.darkBG,
                    fontWeight: FontWeight.bold,
                    fontSize: Sizes.dp12(context),
                  ),
                ),
              ),
            ),
          ),
        ),
      );
    }
  }
  