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

PlatformWindows

Launch Windows applications from a single instance. Brings the current instance to the front on each launch.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:windows_single_launch/windows_single_launch.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  WindowsSingleLaunch().singleRunApp(
    app: const MyApp(),
    originalName: "windows_single_launch_example.exe",
    windowTitleName: "Windows Single Launch",
  );
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
      ),
    );
  }
}
3
likes
150
points
127
downloads

Publisher

verified publisherclomc.xyz

Weekly Downloads

Launch Windows applications from a single instance. Brings the current instance to the front on each launch.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on windows_single_launch