flutter_manifest 0.1.2

Flutter Android iOS web

Flutter package to manage Web App manifest. Supports generating the manifest file and reading information from manifest.json in assets.

Flutter Manifest #

Flutter package to manage Web App manifest.

https://developer.mozilla.org/en-US/docs/Web/Manifest

Generate manifest #

flutter pub run flutter_manifest:generate

Add manifest to assets #

flutter:
  assets:
    - manifest.json

Use manifest in index.html #

<head>
  ...
  <link rel="manifest" href="./assets/manifest.json">
</head>

Override and/or add fields to manifest #

flutter_manifest:
  orientation: "portrait"
  theme_color: "#F00"
  background_color: "#000"

Read manifest #

final manifest = await Manifest.read();
showAboutDialog(
  context: context,
  applicationName: manifest.name,
  applicationVersion: manifest.version,
  children: [
    Text(manifest.description)
  ]
);
1
likes
100
pub points
66%
popularity

Flutter package to manage Web App manifest. Supports generating the manifest file and reading information from manifest.json in assets.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jouni.t.nurmi@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, yaml

More

Packages that depend on flutter_manifest