app_launcher 0.1.0+1 copy "app_launcher: ^0.1.0+1" to clipboard
app_launcher: ^0.1.0+1 copied to clipboard

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('Plugin example app'),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              RaisedButton(
                onPressed: () async {
                  await AppLauncher.openApp(
                    androidApplicationId: "com.whatsapp",
                  );
                },
                child: Text('Open WhatsApp'),
              ),
              SizedBox(height: 16),
              RaisedButton(
                onPressed: () async {
                  await AppLauncher.openApp(
                    androidApplicationId: "sth.apply.wrongapp",
                  );
                },
                child: Text('Open Something Else'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
23
likes
0
pub points
79%
popularity

Publisher

verified publisherakora-ingdkb.me

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on app_launcher