app_launcher 1.0.0 copy "app_launcher: ^1.0.0" to clipboard
app_launcher: ^1.0.0 copied to clipboard

PlatformAndroid
outdated

A flutter plugin that launches an Android or iOS installed on the device using the application ID.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:app_launcher/app_launcher.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('App Launcher Example'),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              ElevatedButton(
                onPressed: () async {
                  await AppLauncher.openApp(
                    androidApplicationId: "com.whatsapp",
                  );
                },
                child: Text('Open WhatsApp'),
              ),
              SizedBox(height: 16),
              ElevatedButton(
                onPressed: () async {
                  final value = await AppLauncher.hasApp(
                    androidApplicationId: "org.videolan.vlc",
                  );

                  print(value);
                },
                child: Text('Check for VLC'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
27
likes
160
points
1.24k
downloads

Publisher

verified publisherakora-ingdkb.me

Weekly Downloads

A flutter plugin that launches an Android or iOS installed on the device using the application ID.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on app_launcher