title: The argument type 'BlocProvider' can't be assigned to the parameter type 'Widget' - Cubit BlocProvider
body: <p>I am literally pulling my hair over this because all tutorials seem to be implementing this part of code this way.
  But my compiler throws the error: <strong>The argument type 'BlocProvider' can't be assigned to the parameter type 'Widget'.</strong><br/>
  I am following the tutorial: <a href="https://resocoder.com/2020/08/04/flutter-bloc-cubit-tutorial/" rel="nofollow noreferrer">Flutter Bloc &amp; Cubit</a><br/>
  All parts of the code work well apart from the <strong>Main.dart</strong> where we are supposed to add the <strong>BlocProvider</strong><br/>
  I am new to flutter and I have no Idea what I should do from here.</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:flutter_bloc/flutter_bloc.dart';
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Material App',
        home: BlocProvider(
          create: (context) =&gt; WeatherCubit(FakeWeatherRepository()),
          child: WeatherSearchPage(),
        ),
      );
    }
  }
  </code></pre>
  <p>The error is as seen in the attached image:
  <a href="https://i.stack.imgur.com/MmaTA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MmaTA.jpg" alt="attached image" /></a></p>