JayTWWM / Share-Files-And-Screenshot-Widgets-Flutter

This pub lets you share any kind of files (csv, mp4, png etc), take screenshot of the widgets you want and return as Image and share them directly as well in the form of an image.
Other
24 stars 14 forks source link

Introduce null safety #14

Closed MrCsabaToth closed 3 years ago

MrCsabaToth commented 3 years ago

Right now the package doesn't support null safety and that poses a problem with sound null safe projects.

The library 'package:share_files_and_screenshot_widgets/share_files_and_screenshot_widgets.dart' is legacy, and should not be imported into a null safe library.

seifkh97 commented 3 years ago

pls introduce null safety

MrCsabaToth commented 3 years ago

pls introduce null safety

If you don't care about the screenshot feature or image sharing then I have a null-safe fork: https://github.com/CsabaConsulting/Share-Files-And-Screenshot-Widgets-Flutter/ I'm using it to share non image files. You can refer to it in your pubspec.yaml like:

  share_files_and_screenshot_widgets:
    git:
      url: https://github.com/CsabaConsulting/Share-Files-And-Screenshot-Widgets-Flutter.git

Upgrading one of my Flutter projects to null safety was a complete shit show, I'm still carrying 4 custom forks on my back: https://csaba.page/blog/flutter-dart-sound-null-safety.html

JayTWWM commented 3 years ago

Done