# flutter_android_launcher
**Repository Path**: wawe/flutter_android_launcher
## Basic Information
- **Project Name**: flutter_android_launcher
- **Description**: flutter_android_launcher is a Flutter plugin that helps developers create custom launchers for Android using Flutter.
- **Primary Language**: Dart
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-01-06
- **Last Updated**: 2026-01-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# flutter_android_launcher
`flutter_android_launcher` is a Flutter plugin that helps developers create custom launchers for Android using Flutter. This plugin provides various functionalities to interact with installed apps, manage user profiles, and handle quiet mode settings. (ie. Android 15 private space.) This plugin is developed for a currently in-progress launcher.
## Features
- Retrieve a list of installed apps.
- Launch an app with a specified profile.
- Get user profile information.
- Check if quiet mode is enabled for a profile.
- Request to enable or disable quiet mode for a profile.
Most of the relevant Android APIs are in [LauncherApps](https://developer.android.com/reference/android/content/pm/LauncherApps) such as [getApplicationInfo](https://developer.android.com/reference/android/content/pm/LauncherApps#getApplicationInfo(java.lang.String,%20int,%20android.os.UserHandle)), [getActivityList](https://developer.android.com/reference/android/content/pm/LauncherApps#getActivityList(java.lang.String,%20android.os.UserHandle)) and [startMainActivity](https://developer.android.com/reference/android/content/pm/LauncherApps#startMainActivity(android.content.ComponentName,%20android.os.UserHandle,%20android.graphics.Rect,%20android.os.Bundle)) as well as [UserManager](https://developer.android.com/reference/android/os/UserManager) via [getUserProfiles](https://developer.android.com/reference/android/os/UserManager#getUserProfiles()) and [requestQuietModeEnabled](https://developer.android.com/reference/android/os/UserManager#requestQuietModeEnabled(boolean,%20android.os.UserHandle,%20int)). These APIs are wrapped by this plugin. All the relevant APIs, and how they are used, can be seen in [FlutterAndroidLauncherPlugin.kt](https://github.com/AbyssalSpaceLauncher/flutter_android_launcher/blob/main/android/src/main/kotlin/com/example/flutter_android_launcher/FlutterAndroidLauncherPlugin.kt)
## Getting Started
To use this plugin, add `flutter_android_launcher` as a dependency in your `pubspec.yaml` file.
```yaml
dependencies:
flutter:
sdk: flutter
flutter_android_launcher:
```
### Android Setup
Add the following permissions and configs to your `AndroidManifest.xml` file:
```xml
```
## Example
A full example is provided in the `example` directory. The example demonstrates how to use the plugin to interact with installed apps, manage user profiles, and handle quiet mode settings.
To run the example:
1. Navigate to the `example` directory.
2. Run `flutter pub get` to install dependencies.
3. Run `flutter run` to start the example app.
### Basic Usage
Here is a brief example of how to use the API to display a list of apps and a button to launch them:
```dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_android_launcher/flutter_android_launcher.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Android Launcher',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
List