build_info_web 1.0.2 copy "build_info_web: ^1.0.2" to clipboard
build_info_web: ^1.0.2 copied to clipboard

Platformweb

Web implementation of Flutter plugin that retrieves build date and time and installation date and time.

build_info_web #

The Web implementation of build_info.

Usage #

This package is endorsed, which means you can simply use build_info normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

About implementation of Web version #

The Web version of build_info works as follows.

  1. Call the BuildInfo.fromPlatform method from Flutter.
  2. Request "version.json" as the build date and time using the HEAD or GET method and use the Last-Modified or Date response header value.
  3. If the date and time cannot be obtained from "version.json", use the value of document.lastModified.

If the date and time could not be obtained, it will be null.
In the Web version, the installation date and time is always null.

0
likes
140
pub points
29%
popularity

Publisher

verified publishercraftsoft.dev

Web implementation of Flutter plugin that retrieves build date and time and installation date and time.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

build_info_platform_interface, flutter, flutter_web_plugins, http

More

Packages that depend on build_info_web