incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 101 forks source link

File saver is not working on Flutter 3 #46

Closed Katekko closed 2 years ago

Katekko commented 2 years ago

\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\file_saver-0.1.0\android\src\main\kotlin\com\one\file_saver\FileSaverPlugin.kt: (31, 39): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected

FAILURE: Build failed with an exception.

BUILD FAILED in 33s Exception: Gradle task assembleDebug failed with exit code 1

GVodyanov commented 2 years ago

Same

riberman commented 2 years ago

To build and no show errors in Flutter 3.0.4 for dev mode, change line 30 in file FileSaverPlugin.kt val messenger = pluginBinding?.binaryMessenger to val messenger = pluginBinding?.binaryMessenger!!

riberman commented 2 years ago

Changes to prevent this error: https://github.com/incrediblezayed/file_saver/pull/37/commits/c88d506bec5ceebff4ce2ec11f0528e03b233135

incrediblezayed commented 2 years ago

Fixes are coming to pub.dev tonight or tomorrow