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

Flutter still unable to recognize package as null-safety #112

Open
leekaimun opened this issue May 13, 2021 · 6 comments
Open

Flutter still unable to recognize package as null-safety #112

leekaimun opened this issue May 13, 2021 · 6 comments

Comments

@leekaimun
Copy link

environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter_xlider: ^3.4.0-dev.3

During flutter build, it still complains that the package is not null-safe.

@lroige
Copy link

lroige commented May 20, 2021

Please @Ali-Azmoud update pub version so that the already merged null-safe version is available for all.

@ydotmalik
Copy link

To workaround this, I downloaded the git repo, put it in the top-level directory of my project, and put the following in pubspec.yaml:

  flutter_xlider:
    path: flutter_xlider

The null safety error is no longer happens.

@lroige
Copy link

lroige commented May 20, 2021

My solution is to import the library using the github url instead of the version number. In production environment, though, this is not desirable, so it would be best to have the new version marked as such.

@yanivshaked
Copy link

@Ali-Azmoud Can you please release the latest version of the plugin with null safety support?

@ydotmalik
Copy link

Even when I used the null compatible version from master, this package has issues regarding the selectable region of the thumb. I ended up building my own slider by following this answer. It really wasn't much more difficult than using this package.

@tsvillain
Copy link

flutter_xlider:
  git:
    url: https://github.com/Ali-Azmoud/flutter_xlider.git
    ref: master

Master branch supports Null Safety but the pub version has not been updated use this.

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

5 participants