content: import 'package:cine_reel/bloc/movie_details_bloc.dart';
  import 'package:cine_reel/models/tmdb_movie_details.dart';
  import 'package:cine_reel/ui/common_widgets/blurred_image.dart';
  import 'package:cine_reel/ui/details_screen/movie_details_content_widget.dart';
  import 'package:flutter/material.dart';
  import 'package:flutter/widgets.dart';
  
  class MovieDetailsWidget extends StatelessWidget {
    final TMDBMovieDetails movieDetails;
    final MovieDetailsBloc movieDetailsBloc;
    final bool hasFailed;
    final String backgroundSize;
  
    MovieDetailsWidget(
        {@required this.movieDetails,
        @required this.movieDetailsBloc,
        bool this.hasFailed,
        this.backgroundSize});
  
    @override
    Widget build(BuildContext context) {
      return buildContent(context);
    }
  
    /*
    A stack with a blurred background and contents laid out on top of it
     */
    buildContent(BuildContext context) {
      return Container(
          child: Stack(
        children: <Widget>[
          BlurredImage(
            imagePath: movieDetails.movieBasic.backdropPath,
            imageSize: backgroundSize,
          ),
          MovieDetailsContentWidget(movieDetails, movieDetailsBloc, hasFailed)
        ],
      ));
    }
  }
  