Skip to content

[package_info_plus] Web: fail to get PackageInfo (version) offline #456

Description

@alextekartik

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestIssues taking part in HacktoberfestStalebugSomething isn't workingpackage_info_plusstuff related to package_info_plus

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions