core_file_manager icon indicating copy to clipboard operation
core_file_manager copied to clipboard

Showing enormous error during run

Open arafat08007 opened this issue 3 years ago • 0 comments

../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/dynamic_theme-1.0.1/lib/dynamic_theme.dart:25:46: Error: Method not found: 'TypeMatcher'. return context.ancestorStateOfType(const TypeMatcher<DynamicThemeState>()); ^^^^^^^^^^^ ../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/dynamic_theme-1.0.1/lib/dynamic_theme.dart:25:20: Error: The method 'ancestorStateOfType' isn't defined for the class 'BuildContext'.

  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/E:/flutterSDK/flutter/packages/flutter/lib/src/widgets/framework.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ancestorStateOfType'. return context.ancestorStateOfType(const TypeMatcher<DynamicThemeState>()); ^^^^^^^^^^^^^^^^^^^ /C:/Users/Softbakso%20Limited/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/provider-3.2.0/lib/src/delegate_widget.dart:194:18: Error: Superclass has no method named 'inheritFromElemen t'. return super.inheritFromElement(ancestor, aspect: aspect); ^^^^^^^^^^^^^^^^^^ /C:/Users/Softbakso%20Limited/AppData/Local/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' ('/E:/flutterSDK/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<T> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/Users/Softbakso%20Limited/AppData/Local/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' ('/E:/flutterSDK/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 'E:\flutterSDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'E:\flutterSDK\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 51s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 52.5s Exception: Gradle task assembleDebug failed with exit code 1

arafat08007 avatar May 31 '21 07:05 arafat08007