title: The argument type 'Object?' can't be assigned to the parameter type 'Widget?'
body: <p>I was following tutorial and I get this error</p>
  <blockquote>
  <p>' The argument type 'Object?' can't be assigned to the parameter type 'Widget?'.dartargument_type_not_assignable'.</p>
  </blockquote>
  <p>I tried to look on the documentation but I did know hoe to solve the error</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'search.dart';
  import 'user_info.dart';
  
  import 'cart.dart';
  import 'feed.dart';
  import 'home.dart';
  
  class BottomBarScreen extends StatefulWidget {
    @override
    _BottomBarScreenState createState() =&gt; _BottomBarScreenState();
  }
  
  class _BottomBarScreenState extends State&lt;BottomBarScreen&gt; {
    List&lt;Map&lt;String, Object&gt;&gt; _pages;
    int _selectedPageIndex = 0;
  
    @override
    void initState() {
      _pages = [
        {
          'page': home(),
       },
        {
          'page': feed(),
        },
        {
          'page': search(),
        },
    {
      'page': cart(),
    },
    {
      'page': user_info(),
    },
  ];
  super.initState();
    }
  
    void _selectPage(int index) {
      setState(() {
      _selectedPageIndex = index;
     });
    }
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: _pages[_selectedPageIndex]['page'],
  </code></pre>