installed_apps 0.0.4 copy "installed_apps: ^0.0.4" to clipboard
installed_apps: ^0.0.4 copied to clipboard

outdated

Flutter plugin to get list of installed apps, with other app utitlities. (Currently Android only)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:installed_apps/app_info.dart';
import 'package:installed_apps/installed_apps.dart';

void main() => runApp(App());

class App extends MaterialApp {
  @override
  Widget get home => HomeScreen();
}

class HomeScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text("Installed Apps Example")),
        body: FutureBuilder<List<AppInfo>>(
            future: InstalledApps.getInstalledApps(),
            builder: (BuildContext buildContext,
                AsyncSnapshot<List<AppInfo>> snapshot) {
              return snapshot.hasData
                  ? ListView.builder(
                      itemCount: snapshot.data.length,
                      itemBuilder: (context, index) {
                        AppInfo app = snapshot.data[index];
                        return ListTile(
                          title: Text(app.name),
                          onTap: () => InstalledApps.startApp(app.packageName),
                          onLongPress: () =>
                              InstalledApps.openSettings(app.packageName),
                        );
                      })
                  : Center(child: Text("Getting installed apps ...."));
            }));
  }
}
112
likes
30
points
16k
downloads

Publisher

verified publishersharmadhiraj.com

Weekly Downloads

Flutter plugin to get list of installed apps, with other app utitlities. (Currently Android only)

Repository (GitHub)

License

unknown (license)

Dependencies

flutter

More

Packages that depend on installed_apps