fluttercommunity / fluttercommunity/chewie
Giving bundle of errors - SystemChrome.setEnabledSystemUIOverlays and ThemeData.accentColor etc.
- Dominant language
- Dart
- Stars
- 2.1k
- Forks
- 1.1k
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 6
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.