Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharmadhiraj/installed_apps
Flutter plugin with utility methods related to installed apps on device.
https://github.com/sharmadhiraj/installed_apps
android apps dart flutter flutter-plugin installed ios kotlin platform-channels plugin
Last synced: about 2 months ago
JSON representation
Flutter plugin with utility methods related to installed apps on device.
- Host: GitHub
- URL: https://github.com/sharmadhiraj/installed_apps
- Owner: sharmadhiraj
- License: apache-2.0
- Created: 2019-04-01T07:11:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T07:51:36.000Z (6 months ago)
- Last Synced: 2024-08-07T10:07:37.475Z (5 months ago)
- Topics: android, apps, dart, flutter, flutter-plugin, installed, ios, kotlin, platform-channels, plugin
- Language: Dart
- Homepage: https://pub.dev/packages/installed_apps
- Size: 261 KB
- Stars: 16
- Watchers: 1
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Installed Apps
The **Installed Apps** plugin for Flutter provides utility methods related to installed apps on a
device.Currently, only Android is supported.
### Version Compatibility
If any functionality in the new version of the plugin doesn't work as expected, you can revert to a
previous version by specifying the exact version without using the caret (^) before the version
number. If you encounter any issues, please raise an issue on GitHub, and I'll address it as soon as
possible.## Getting Started
1. [Installation Guide](https://pub.dev/packages/installed_apps/install)
2. [Example Project](https://github.com/sharmadhiraj/installed_apps/tree/master/example)## Usage
#### Get List of Installed Apps
``` dart
List apps = await InstalledApps.getInstalledApps(
bool excludeSystemApps,
bool withIcon,
String packageNamePrefix
);
```Use `packageNamePrefix` to filter apps with package names starting with a specific prefix.
#### Get App Info with Package Name
``` dart
AppInfo app = await InstalledApps.getAppInfo(String packageName);
```#### AppInfo model class
``` dart
class AppInfo {
String name;
Uint8List? icon;
String packageName;
String versionName;
int versionCode;
BuiltWith builtWith;
int installedTimestamp;
}
```#### Start App with Package Name
``` dart
InstalledApps.startApp(String packageName);
```#### Open App Settings Screen with Package Name
``` dart
InstalledApps.openSettings(String packageName);
```#### Check if App is a System App
``` dart
bool isSystemApp = await InstalledApps.isSystemApp(String packageName);
```#### Uninstall App
``` dart
bool uninstallIsSuccessful = await InstalledApps.uninstallApp(String packageName);
```#### Check if App is Installed
``` dart
bool appIsInstalled = await InstalledApps.isAppInstalled(String packageName);
```
I'm continuously improving the plugin. If you have any feedback, issues, or suggestions, don't
hesitate to reach out. Happy coding!