current_app_detector 1.0.5 copy "current_app_detector: ^1.0.5" to clipboard
current_app_detector: ^1.0.5 copied to clipboard

PlatformAndroid

A Flutter plugin to detect the current foreground app and navigate to home screen. Provides getCurrentApp() and goHome() methods for Android.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add current_app_detector

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  current_app_detector: ^1.0.5

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:current_app_detector/current_app_detector.dart';
0
likes
150
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect the current foreground app and navigate to home screen. Provides getCurrentApp() and goHome() methods for Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on current_app_detector

Packages that implement current_app_detector