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

import 'package:model_viewer/model_viewer.dart' not working in a null save library #37

Open
FELIXJUNGO opened this issue Jul 19, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@FELIXJUNGO
Copy link

Describe the bug
I'm not able to import the model-viewer library into my main dart file. Error: The library 'package:model_viewer/model_viewer.dart' is legacy, and should not be imported into a null safe library.
Try migrating the imported library.dart(import_of_legacy_library_into_null_safe)

To reproduce
Dart SDK version: 2.13.4 (stable) (Wed Jun 23 13:08:41 2021 +0200) on "macos_x64"

Flutter 2.2.3 • channel stable

Expected behavior
To import the library

Desktop (please complete the following information):

  • OS: Mac 11.4
  • Visual Studio Code 1.58
@FELIXJUNGO FELIXJUNGO added the bug Something isn't working label Jul 19, 2021
@alaabh
Copy link

alaabh commented Aug 6, 2021

run using flutter run --no-sound-null-safety

@jakub-cosmose
Copy link

Are they any plans to migrate the library to support null-safety?

@kjawadDeveloper
Copy link

Any update on it?

@jakub-cosmose
Copy link

I've just switched to this fork:
https://github.com/omchiii/model_viewer_plus.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants