Dalon
Dalon

Reputation: 700

Flutter dart null safety migration dont work because of package flutter_template_images

I want to migrate my project to null safety but the dependecie flutter_template_images is not supporting null safety:

Package Name             Current  Upgradable  Resolvable  Latest

direct dependencies:
flutter_template_images  ✗4.0.0   ✗4.0.0      ✗4.0.0      ✗4.0.0

dev_dependencies: all support null safety.
You are already using the newest resolvable versions listed in the 'Resolvable' column.
Newer versions, listed in 'Latest', may not be mutually compatible.

I dont know where this package comes from and I dont find it in the pubspec.yaml file. Can I migrate null safety without upgrading this dependencie?

EDIT: This is my pubspec.yaml file:

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  material_design_icons_flutter: ^4.0.5955

  pdf: ^3.3.0

  path_provider: ^2.0.2

  provider: ^6.0.0

  open_file: ^3.2.1

  intl: ^0.17.0

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  cloud_firestore: ^2.3.0
  get: ^4.1.4
  printing: ^5.4.3
  google_sign_in: ^5.0.5
  firebase_auth: ^3.0.1
  fl_chart: ^0.36.3
  url_launcher: ^6.0.9
  sqflite: ^2.0.0+4

Upvotes: 0

Views: 417

Answers (1)

Adedokun Emmanuel
Adedokun Emmanuel

Reputation: 71

It appears the maintainer has not migrated the package to dart-null-safety, you could either wait for the maintainer to migrate the package or clone the package and migrate the package yourself. Another option could be that you remove the package from your project.

For more clarification dart-null-safety

Upvotes: 1

Related Questions