Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: No named parameter with the name 'isAlwaysShown'. #31

Open
user97116 opened this issue Sep 25, 2023 · 0 comments
Open

Error: No named parameter with the name 'isAlwaysShown'. #31

user97116 opened this issue Sep 25, 2023 · 0 comments

Comments

@user97116
Copy link

Launching lib/main.dart on RMX1801 in debug mode...
/home/amar/.pub-cache/hosted/pub.dev/vs_scrollbar-0.2.1/lib/vs_scrollbar.dart:143:11: Error: No named parameter with the name 'isAlwaysShown'.
isAlwaysShown: isAlwaysShown,
^^^^^^^^^^^^^
/home/amar/.pub-cache/hosted/pub.dev/vs_scrollbar-0.2.1/lib/vs_scrollbar.dart:174:14: Error: The getter 'isAlwaysShown' isn't defined for the class '_MaterialScrollbar'.

  • '_MaterialScrollbar' is from 'package:vs_scrollbar/vs_scrollbar.dart' ('/home/amar/.pub-cache/hosted/pub.dev/vs_scrollbar-0.2.1/lib/vs_scrollbar.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'isAlwaysShown'.
    widget.isAlwaysShown ?? _scrollbarTheme.isAlwaysShown ?? false;
    ^^^^^^^^^^^^^
    /home/amar/.pub-cache/hosted/pub.dev/vs_scrollbar-0.2.1/lib/vs_scrollbar.dart:174:47: Error: The getter 'isAlwaysShown' isn't defined for the class 'ScrollbarThemeData'.
  • 'ScrollbarThemeData' is from 'package:flutter/src/material/scrollbar_theme.dart' ('/home/amar/snap/flutter/common/flutter/packages/flutter/lib/src/material/scrollbar_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'isAlwaysShown'.
    widget.isAlwaysShown ?? _scrollbarTheme.isAlwaysShown ?? false;
    ^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/home/amar/snap/flutter/common/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1297

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/home/amar/snap/flutter/common/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.

BUILD FAILED in 23s

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant