Here is the error! I have never used these below error packages in my pubspec.yaml
../../.pub-cache/hosted/pub.dev/chewie_audio-
1.3.0/lib/src/material_controls.dart:242:50: Error: The getter 'accentColor'
isn't
defined for the class 'ThemeData'.
../../.pub-cache/hosted/pub.dev/flutter_math_fork-
0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:198:29: Error: The
argument
type 'void Function(DragEndDetails)' can't be assigned to the parameter type
'void
Function(TapDragEndDetails)?'.
- 'DragEndDetails' is from 'package:flutter/src/gestures/drag_details.dart'
('../flutter/packages/flutter/lib/src/gestures/drag_details.dart').
- 'TapDragEndDetails' is from
'package:flutter/src/widgets/tap_and_drag_gestures.dart'
('../flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onDragSelectionEnd: onDragSelectionEnd,
^
Failed to compile application.
It looks the error comes from other packages! I don’t have a clue from where it comes from!
Please suggest a resolution! Thanks!
2
Answers
accentColor
is deprecated from latest flutter.seems few of your package using it
flutter_math_fork
chewie_audio
this is it from you error log.try to change it or update it. you problem will be gone
flutter_html package might be responsible for that.
https://pub.dev/packages/flutter_html