I am trying to use a vin decoder package in my app. When I import the package:
import 'package:vin_decoder/vin_decoder.dart';
but I am getting this warning:
The library 'package:vin_decoder/vin_decoder.dart' is legacy, and should not be imported into a null safe library. Try migrating the imported library.
My pubspec.yaml has this under dependencies:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
vin_decoder: ^0.1.4
Can someone explain what I am doing wrong? I checked out this stack overflow question but nothing worked. Thank you.