install_prompt 0.0.1 copy "install_prompt: ^0.0.1" to clipboard
install_prompt: ^0.0.1 copied to clipboard

PlatformAndroid

Install apk dialog for Android instant apps.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(title: const Text('Install-Prompt Example')),
            body: Center(
                child: ElevatedButton(
                    onPressed: InstallPrompt.showInstallPrompt,
                    child: Text("Install")))));
  }
}
2
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Install apk dialog for Android instant apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on install_prompt