in native Android, we can launch another app like this:
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(url)));
how can this be accomplished in Flutter/dart?
in native Android, we can launch another app like this:
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(url)));
how can this be accomplished in Flutter/dart?
You can use Share_Plus plugin and archive your goal. import this package in your pubspacs.yaml file
share_plus: ^3.0.4
then import it using import 'package:share_plus/share_plus.dart';
Now you can use
Share.share('Sharing Text', subject: 'Sharing Subjects');
You can also share file using
Share.shareFiles(['${directory.path}/image.jpg'], text: 'Great picture');
Use External app launcher package you can run the app you want using the package name using the following
import the package then
import 'package:external_app_launcher/external_app_launcher.dart';
use this to launch the app if it is installed else it will send to play store
await LaunchApp.openApp(
androidPackageName: 'com.whatsapp',
openStore: true);