import 'package:flutter/widgets.dart';
import 'package:provider/provider.dart';

class MediaQueryDataProvider extends StatelessWidget {
  final Widget child;

  const MediaQueryDataProvider({@required this.child});

  @override
  Widget build(BuildContext context) {
    return Provider<MediaQueryData>.value(
      value: MediaQuery.of(context),
      child: child,
    );
  }
}
