title: Bad state: add Fetch Article was called without a registered event handler
body: <pre><code>class _HomePageState extends State&lt;HomePage&gt; {
    late ArticleBloc articleBloc;
  
    @override
    void initState() {
      super.initState();
      articleBloc = BlocProvider.of&lt;ArticleBloc&gt;(context);
      articleBloc.add(FetchArticlesEvent());
    }
  
    @override
    Widget build(BuildContext context) {
      return Container();
    }
  }
  </code></pre>
  <p>It works before but now the code wasn't working.</p>
  <p>I try a lot to search but I failed.</p>
  <p>This is the error:</p>
  <blockquote>
  <p>Bad state: add(FetchArticlesEvent) was called without a registered event handler.</p>
  </blockquote>