mirrored_repositories/Restaurant-Assignment/lib
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';

class NetworkImageUtil extends StatelessWidget {
  final String image;
  final BoxFit fit;
  final double width, height;

  const NetworkImageUtil(this.image,
      {Key key, this.fit, this.height, this.width})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Image.network(
      image,
      fit: fit,
      width: width,
      height: height,
    );
  }
}
