flutter_manifest 0.1.2
flutter_manifest: ^0.1.2 copied to clipboard

Flutter Android iOS web

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

example/lib/main.dart

import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:flutter_manifest/flutter_manifest.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Manifest Example',
      debugShowCheckedModeBanner: false,
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter Manifest Example'),
      ),
      body: FutureBuilder(
        future: Manifest.read(),
        builder: (BuildContext context, AsyncSnapshot snapshot) {
          if (snapshot.hasData)
            return Center(
              child: Text(JsonEncoder.withIndent('  ').convert(snapshot.data)),
            );
          else if (snapshot.hasError)
            return Center(child: Text(snapshot.data));
          else return Center(child: Text('loading'));
        },
      )
    );
  }
}
1
likes
90
pub points
59%
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