-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting build errors? #881
Comments
@fisforfaheem please ensure that your Flutter version is at |
My project uses chewie and is getting this error because we can't upgrade yet -- the timing is very bad. From running: flutter pub deps, I see that flutter_widget_from_html is including chewie. I dont use the video portion of this widget, is there a way to disable that feature so that the component does not pull in chewie? |
You can downgrade to 1.8.5 and pin that version in until you get around to upgrading. |
I encountered this issue as well. The problem arises because Chewie automatically updates to version 1.8.7. A temporary solution is to pin the version to avoid auto-upgrading.
Note that the version is specified without the '^' symbol to prevent automatic updates. |
@fisforfaheem just published version From now on, this library will make a best effort in trying to support the latest |
Launching lib\main.dart on Pixel 7 in debug mode...
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.8.7/lib/src/material/material_controls.dart:473:35: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
color: Colors.white.withValues(alpha: .75),
^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.8.7/lib/src/material/material_controls.dart:685:57: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
Theme.of(context).colorScheme.surface.withValues(alpha: 0.5),
^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.8.7/lib/src/material/material_controls.dart:687:51: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
Theme.of(context).disabledColor.withValues(alpha: .5),
^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.8.7/lib/src/material/material_desktop_controls.dart:651:57: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
Theme.of(context).colorScheme.surface.withValues(alpha: 0.5),
^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.8.7/lib/src/material/material_desktop_controls.dart:653:51: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
Theme.of(context).disabledColor.withValues(alpha: 0.5),
^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 27s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
The text was updated successfully, but these errors were encountered: