The Installed Apps plugin for Flutter provides utility methods related to installed apps on a device.
Currently, only Android is supported.
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.
List<AppInfo> apps = await InstalledApps.getInstalledApps(
bool excludeSystemApps,
bool withIcon,
String packageNamePrefix
);
Use packageNamePrefix
to filter apps with package names starting with a specific prefix.
AppInfo app = await InstalledApps.getAppInfo(String packageName);
class AppInfo {
String name;
Uint8List? icon;
String packageName;
String versionName;
int versionCode;
BuiltWith builtWith;
int installedTimestamp;
}
InstalledApps.startApp(String packageName);
InstalledApps.openSettings(String packageName);
bool isSystemApp = await InstalledApps.isSystemApp(String packageName);
bool uninstallIsSuccessful = await InstalledApps.uninstallApp(String packageName);
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!