flutter_manifest 0.1.2 copy "flutter_manifest: ^0.1.2" to clipboard
flutter_manifest: ^0.1.2 copied to clipboard

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
40
pub points
0%
popularity

Publisher

unverified uploader

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

License

MIT (LICENSE)

Dependencies

flutter, yaml

More

Packages that depend on flutter_manifest