Skip to content
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

widget.isAlwaysShown ?? _scrollbarTheme.isAlwaysShown ?? false; #33

Open
alexanselm17 opened this issue Oct 16, 2023 · 2 comments
Open

Comments

@alexanselm17
Copy link

../../../.pub-cache/hosted/pub.dev/boardview-0.2.2/lib/vs_scrollbar.dart:143:5: Error: No named parameter with the name 'isAlwaysShown'.
isAlwaysShown: isAlwaysShown,
^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/boardview-0.2.2/lib/vs_scrollbar.dart:174:14: Error: The getter 'isAlwaysShown' isn't defined for the class '_MaterialScrollbar'.

  • '_MaterialScrollbar' is from 'package:boardview/vs_scrollbar.dart' ('../../../.pub-cache/hosted/pub.dev/boardview-0.2.2/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;
    ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dev/boardview-0.2.2/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' ('../../../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/anselm/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/anselm/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.

@g14wx
Copy link

g14wx commented Oct 18, 2023

By the moment, the only way to make this works again is to modify manually the library, It's not recommended, I know, but if you want to make it works ASAP, then you just have to update this file
image

In line 143, you have to replace the isAlwaysShown property from the super constructor to thumbVisibility

image

Then in line 173, you have to do this tweak:

image
  bool get showScrollbar =>
      widget.thumbVisibility ?? _scrollbarTheme.thumbVisibility?.resolve(Set.of([MaterialState.disabled])) ?? false;

and you are done, it will let you build your ABB or APK normally at least for your local env

@cunha-ambisis
Copy link

@jakebonk Can't release a new version 0.23 with just this fix?
New versions of flutter break this library, and I want to update my flutter version, and this lib is not allowing me to.
I can do the PR, but is literally 2 lines of code to change.

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

No branches or pull requests

3 participants