device_apps 1.3.0 device_apps: ^1.3.0 copied to clipboard
Plugin to list applications installed on an Android device (iOS is not supported). You can also monitor application changes (updates, uninstallation…)
import 'package:device_apps_example/apps_events.dart';
import 'package:device_apps_example/apps_list.dart';
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: const ExampleApp()));
class ExampleApp extends StatelessWidget {
const ExampleApp();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Device apps demo')),
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
TextButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute<Object>(
builder: (BuildContext context) => AppsListScreen()),
);
},
child: Text('Applications list')),
TextButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute<Object>(
builder: (BuildContext context) => AppsEventsScreen()),
);
},
child: Text('Applications events'))
],
),
),
);
}
}