title: Error: Could not find the correct Provider<CartList> above this Consumer<CartList> Widget in flutter
body: <p>This is a part of code for run app:</p>
  <pre><code> Navigator.of(context).pushReplacement(MaterialPageRoute(
                    builder: (BuildContext context) =&gt; _number != null?ChangeNotifierProvider(
                      create: (context)=&gt;CartList(),
                      child: HomeScreenDemo(),
                    ):Login())));
  </code></pre>
  <p><strong>I've also tried using MultiProvider instead of ChangeNotifierProvider but it didn't work.</strong></p>
  <p>This is the part of Code for home Screen:</p>
  <pre><code> Widget build(BuildContext context) {
      return  Consumer&lt;CartList&gt;(
        builder: (context,CART,child){
          return  Scaffold(
            key: scaffoldKey,
            backgroundColor: Colors.black,
  )
  </code></pre>
  <p>This is how I'm Navigating to checkOut Screen:</p>
  <pre><code>  Navigator.of(context).push(MaterialPageRoute(
                                      builder: (context) =&gt; CartScreen(userPin: _userPin,)
                                    ));
  </code></pre>
  <p>This is the code of checkOut Screen:</p>
  <pre><code> Widget build(BuildContext context) {
      return Builder(builder: (BuildContext context)=&gt;Consumer&lt;CartList&gt;(
          builder: (context,cart,child){
            return  Scaffold(
              backgroundColor: Colors.black,
  </code></pre>
  <p><strong>I've tried removing builder before Consumer But it didn't work.</strong></p>
  <p>This Is the ScreenShot of error:</p>
  <p><a href="https://i.stack.imgur.com/JeC9J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JeC9J.png" alt="enter image description here" /></a></p>
  <p>Here I'm pushing the route:</p>
  <pre><code>
     showCart? Align(
                          alignment: Alignment.bottomCenter,
                          child: Padding(
                            padding: const EdgeInsets.all(12.0),
                            child: Container(
  
                              decoration: BoxDecoration(
                                borderRadius: BorderRadius.circular(8),color: Colors.cyan,
  
                              ),
                              child: Material(
                                color: Colors.transparent,
                                child: InkWell(
                                  splashColor: Colors.black12,
                                  onTap: () {
                                    //  Cart OnClick
                                    Navigator.of(context).push(MaterialPageRoute(
                                        builder: (context) =&gt; ChangeNotifierProvider.value(
                                            value: Provider.of&lt;CartList&gt;(context, listen: false),
                                            child: CartScreen(userPin: _userPin,)
                                        )
                                    ));
                                  },
                                  child: Container(
                                    width:MediaQuery.of(context).size.width,
                                    decoration: BoxDecoration(
                                      borderRadius: BorderRadius.circular(8),
  
                                    ),
                                    child: Row(
                                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
  
                                      children: &lt;Widget&gt;[
                                        Column(
                                          mainAxisAlignment: MainAxisAlignment.start,
                                          crossAxisAlignment: CrossAxisAlignment.start,
                                          children: &lt;Widget&gt;[
                                            Text(CART.count&lt;=1?CART.count.toString()+&quot;  ITEM&quot;:CART.count.toString()+&quot;  ITEMS&quot;,style: TextStyle(
                                                letterSpacing: 1.5,fontWeight: FontWeight.w400
                                            ),),
                                            SizedBox(height: 5,),
                                            Text(&quot; ₹&quot;+CART.totalPrice.toString().replaceAll(regex, &quot;&quot;)),
                                          ],
                                        ),
                                        SizedBox(width: 160,),
                                        Text('Cart ',style: TextStyle( fontSize: 18,letterSpacing: .5,fontWeight: FontWeight.w400),textAlign: TextAlign.end,),
                                        Icon(Icons.arrow_right,size: 30,),
  
                                      ],
                                    ),
                                    padding: EdgeInsets.all(10),
                                    height: 60,
  
  
                                  ),
                                ),
                              ),
                            ),
                          ),
                        ):Container()
  
  </code></pre>