FlutterのWeb版で「path_provider」でMissingPluginExceptionが出る件について

1,はじめに

Flutter(web版)でpath_providerのプラグインを使用しようとしたところ、

ホットリロード後の実行中に、下記のエラーが表示されました。

Overflow on channel: plugins.flutter.io/path_provider.
Messages on this channel are being discarded in FIFO fashion.
The engine may not be running or you need to adjust the buffer size if of the channel.
Error: MissingPluginException
(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)

ネット上には、アプリをリビルドすれば解決する旨の記述もありました。

しかし、私の環境ではホットリロードではなくリビルドしても直りませんでした。

本稿では、本件エラーの調査をしました。

2,原因

FlutterのWeb版にpath_providerが対応していない。

3,根拠

path_providerの開発コミュニティーに、

現状(2020年07月19日)、下記のトピックがあります。

[path_provider] Add support for web · Issue #45296 · flutter/flutter · GitHub

その中の最新のコメント(2020年07月08日)には、

下記の事が書かれていした。

[DEPRECATED] Near-term Goals

P1: This milestone indicates that the bug has been determined by the engineers who would work on it that they should work on it sooner rather than later, but they have not yet determined the schedule for working on it, or exactly who should work on it. The date on this milestone is utterly arbitrary and just intended to sort the milestone appropriately. Bugs should not be added to this milestone except by the engineers of the team who are working on the area that the issue covers.

[DEPRECATED] Near-term Goals Milestone · GitHub

意訳すると、いずれ対応するが、現状対応担当者や対応方針が未定です、とのことです。

かなしみ(とはいえ、プルリクエストなどを送れる実力もない)

FlutterのWeb版じゃなくてAndroid版とかでやろう・・・

4,参考文献

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA