model_viewer.dart icon indicating copy to clipboard operation
model_viewer.dart copied to clipboard

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

Open FELIXJUNGO opened this issue 4 years ago • 4 comments

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 avatar Jul 19 '21 05:07 FELIXJUNGO

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

alaabh avatar Aug 06 '21 12:08 alaabh

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

jakub-cosmose avatar Feb 18 '22 15:02 jakub-cosmose

Any update on it?

kjawadDeveloper avatar Mar 12 '22 08:03 kjawadDeveloper

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

jakub-cosmose avatar Mar 14 '22 08:03 jakub-cosmose