I have a null-safe library and in the example folder I'm using the following import:
import 'package:flutter/material.dart';
However, the linter is giving me the following warning:
The library 'package:flutter/material.dart' is legacy, and should not be imported into a null safe library. Try migrating the imported library. import_of_legacy_library_into_null_safe
The example project's pubspec.yaml file specifies the beta version of the Dart SDK:
environment:
sdk: ">=2.12.0-29.10.beta <3.0.0"
dependencies:
flutter:
sdk: flutter
my_library:
path: ../
Hasn't material.dart already been converted by now? Do I need to add something else to pubspec.yaml or just wait for the stable release to come out?