Skip to content

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

@FELIXJUNGO

Description

@FELIXJUNGO

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions