chewie
chewie copied to clipboard
Giving bundle of errors - SystemChrome.setEnabledSystemUIOverlays and ThemeData.accentColor etc.
I am NOT using chewie
package / plugin in my Flutter project, but this plugin is giving me the following bundles of errors:
`Launching lib\main.dart on RMX3395 in debug mode... /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/material/material_controls.dart:549:46: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/material/material_controls.dart:550:46: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. handleColor: Theme.of(context).accentColor, ^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/chewie_player.dart:158:18: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/chewie_player.dart:171:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/chewie_player.dart:175:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays([]); ^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/material/material_desktop_controls.dart:554:46: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ /C:/Users/john/AppData/Local/Pub/Cache/hosted/pub.dev/chewie-1.2.2/lib/src/material/material_desktop_controls.dart:555:46: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. handleColor: Theme.of(context).accentColor, ^^^^^^^^^^^ Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
-
Where: Script 'D:\john\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1302
-
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'D:\kamlesh\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 7s Exception: Gradle task assembleDebug failed with exit code 1
Exited (1). `
Kindly suggest me how can solve this issue to compile my Flutter application.
I am 100% sure, I am not using this chewie
plugin. Checked pubspec.yaml and pubspec.lock files also.
flutter doctor in command line output:
`$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 3.14.0-0.1.pre, on Microsoft Windows [Version 10.0.19045.3324], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3) [√] Android Studio (version 2022.3) [√] VS Code (version 1.82.0) [√] Connected device (4 available) [√] Network resources
• No issues found!`