title: Flutter error Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
body: <p>Hello I have a flutter error although i dont have any bugs in code.
  This is all error:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-3.2.0/lib/src/delegate_widget.dart:194:18: Error: Superclass has no method named 'inheritFromElement'.
      return super.inheritFromElement(ancestor, aspect: aspect);
                   ^^^^^^^^^^^^^^^^^^
  /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-3.2.0/lib/src/provider.dart:259:19: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
   - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
  Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
          ? context.inheritFromWidgetOfExactType(type) as InheritedProvider&lt;T&gt;
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-3.2.0/lib/src/provider.dart:260:19: Error: The method 'ancestorInheritedElementForWidgetOfExactType' isn't defined for the class 'BuildContext'.
   - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
  Try correcting the name to the name of an existing method, or defining a method named 'ancestorInheritedElementForWidgetOfExactType'.
          : context.ancestorInheritedElementForWidgetOfExactType(type)?.widget
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
  
  * What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.
  &gt; Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 12s
  Exception: Gradle task assembleDebug failed with exit code 1</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/uA17N.png" rel="nofollow noreferrer">error code</a></p>
  <p>I downgrade the version to 1.12.15 and steal nothing</p>