standalone 1.1.0 copy "standalone: ^1.1.0" to clipboard
standalone: ^1.1.0 copied to clipboard

unlisted

A simple package to force the user to install pwa on mobile or browser

Standalone #

drawing

A simple package to force the user to install pwa on mobile or browser. Basically, this package checks if your website is installed on your device or not.

Usage/Examples #

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return StandaloneBuilder(
      builder: (context, isStandalone, isMobile) {
        return (isStandalone && isMobile) ? const SizedBox() : const SizedBox();
      },
    );
  }
}
1
likes
120
points
5
downloads

Publisher

verified publisherskydevelopers.ir

Weekly Downloads

A simple package to force the user to install pwa on mobile or browser

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, universal_html

More

Packages that depend on standalone