-
Notifications
You must be signed in to change notification settings - Fork 172
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
Error: The method 'FlushbarRoute.install' has more required arguments than those of overridden method 'OverlayRoute.install'. #117
Comments
Hi, this is a recent issue that appeared with the latest version of flutter. SOLUTION : Line 273 Line 281 Have a nice day :) |
Have the same problem, will it be fixed or what has to be done? With
|
On any device with the current Flutter Beta (required for Flutter Web?) the error occurs. Not with the latest Flutter Stable version. I hope it will be fixed soon. Thank you thomasmot for the temporary fix. Works perfectly, but of course can't be a solution forever. |
# pubspec.yaml
flushbar:
git:
url: https://github.com/AndreHaueisen/flushbar
ref: master works. |
In my case the suggested edit to pubspec.yaml caused a version collision with one of the dependencies. dependencies: |
Thank you all |
try |
This was fixed on the latest version |
flutter run
Using hardware rendering with device sdk gphone x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
Compiler message:
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flushbar-1.9.1/lib/flushbar_route.dart:273:8: Error: The method 'FlushbarRoute.install' has more required
arguments than those of overridden method 'OverlayRoute.install'.
void install(OverlayEntry insertionPoint) {
/C:/flutter/packages/flutter/lib/src/widgets/routes.dart:40:8: Context: This is the overridden method ('install').
void install() {
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flushbar-1.9.1/lib/flushbar_route.dart:281:18: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
FAILURE: Build failed with an exception.
A problem was found with the configuration of task ':app:compileFlutterBuildDebug'.
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.
BUILD FAILED in 45s
Running Gradle task 'assembleDebug'... 48.7s
Exception: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: