standalone 0.9.0
standalone: ^0.9.0 copied to clipboard
A simple package to force the user to install pwa on mobile or browser
example/main.dart
import 'package:flutter/material.dart';
import 'package:standalone/src/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();
},
);
}
}