flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.22k stars 26.65k forks source link

Deferred Components: Add event for obtaining the installation status of components. #83768

Open GaryQian opened 2 years ago

GaryQian commented 2 years ago

Deferred components currently does not expose an easily accessible way to get the installation state. We currently only expose a raw platform channel method called getDeferredComponentInstallState as explained in https://github.com/flutter/flutter/issues/83670.

We should move to implementing an event that developers can listen to in order to update the state on the framework side. This even can live in the DeferredComponents (https://master-api.flutter.dev/flutter/services/DeferredComponent-class.html) utility class.

mohsen-motlagh commented 5 months ago

is there any update in this issue?