This is a issue I think related to #225
It only happens on the Web while offline.
I have a PWA flutter application where I call await PackageInfo.fromPlatform() before running the app. This is the only part that is not working offline as it tries to trick the cache to force reading the version, since there is no network, it fails. I think it should try to read the version but on failure (no network), it should return a stale value as there is no reason we could not get the package name and version offline.
To reproduce, create a flutter app from the basic template, add await PackageInfo.fromPlatform() in main() publish somewhere, run it, turn of network and refresh...
This is a issue I think related to #225
It only happens on the Web while offline.
I have a PWA flutter application where I call
await PackageInfo.fromPlatform()before running the app. This is the only part that is not working offline as it tries to trick the cache to force reading the version, since there is no network, it fails. I think it should try to read the version but on failure (no network), it should return a stale value as there is no reason we could not get the package name and version offline.To reproduce, create a flutter app from the basic template, add
await PackageInfo.fromPlatform()in main() publish somewhere, run it, turn of network and refresh...