mirrored_repositories/flutter_movie_deep_dive_test/lib/src
import 'package:flutter/material.dart';
import 'package:http/http.dart' show Client;
import 'package:flutter_movie_deep_dive_test/src/services/services.dart';
import 'package:provider/provider.dart';

class AppProvider extends StatelessWidget {
  final Client httpClient;
  final Widget child;

  AppProvider({@required this.httpClient, @required this.child});

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        Provider.value(
          value: AppService(httpClient),
        ),
      ],
      child: child,
    );
  }
}
