model_viewer.dart
model_viewer.dart copied to clipboard
import 'package:model_viewer/model_viewer.dart' not working in a null save library
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
run using flutter run --no-sound-null-safety
Are they any plans to migrate the library to support null-safety?
Any update on it?
I've just switched to this fork: https://github.com/omchiii/model_viewer_plus.dart