This is the error
Running "flutter pub get" in inventory_controller...
6.2s Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/main.dart on Android SDK built for x86 in debug mode... ../../../Downloads/Programs/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.0/lib/src/visibility_detector_layer.dart:276:21: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.addToScene(builder, layerOffset); ^FAILURE: Build failed with an exception.
Where: Script '/home/bihire/Downloads/Programs/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1070
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/home/bihire/Downloads/Programs/flutter/bin/flutter'' 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 40s Running Gradle task 'assembleDebug'...
41.9s Exception: Gradle task assembleDebug failed with exit code 1
I did flutter clean
ans flutter pub cache repair
both without any success.
Is there anything else I should try?