launch_at_startup 0.1.9 copy "launch_at_startup: ^0.1.9" to clipboard
launch_at_startup: ^0.1.9 copied to clipboard

outdated

This plugin allows Flutter desktop apps to Auto launch on startup / login.

launch_at_startup #

pub version

This plugin allows Flutter desktop apps to Auto launch on startup / login.


English | 简体中文


Platform Support #

Linux macOS Windows
✔️ ✔️ ✔️

⚠️ macOS only supports non-sandbox mode.

Quick Start #

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  launch_at_startup: ^0.1.9

Or

dependencies:
  launch_at_startup:
    git:
      url: https://github.com/leanflutter/launch_at_startup.git
      ref: main

Usage #

import 'dart:io';

import 'package:launch_at_startup/launch_at_startup.dart';
import 'package:package_info_plus/package_info_plus.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  PackageInfo packageInfo = await PackageInfo.fromPlatform();

  launchAtStartup.setup(
    appName: packageInfo.appName,
    appPath: Platform.resolvedExecutable,
  );

  
  await launchAtStartup.enable();
  await launchAtStartup.disable();
  bool isEnabled = await launchAtStartup.isEnabled();

  runApp(const MyApp());
}

// ...

Please see the example app of this plugin for a full example.

Who's using it? #

License #

MIT

127
likes
0
pub points
95%
popularity

Publisher

verified publisherleanflutter.dev

This plugin allows Flutter desktop apps to Auto launch on startup / login.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, win32_registry

More

Packages that depend on launch_at_startup