window_to_front 0.1.1 copy "window_to_front: ^0.1.1" to clipboard
window_to_front: ^0.1.1 copied to clipboard

Brings your Flutter desktop application window back to the front of the window stack on Windows, Linux and macOS.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'window_to_front example',
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('window_to_front example')),
      body: Center(
        child: ElevatedButton(
          // Call this after returning from an external browser/window
          // (for example, an OAuth sign-in flow) to bring this application
          // back to the front of the window stack.
          onPressed: () => WindowToFront.activate(),
          child: const Text('Bring window to front'),
        ),
      ),
    );
  }
}
19
likes
0
points
433k
downloads

Publisher

verified publishersarkazein.xyz

Weekly Downloads

Brings your Flutter desktop application window back to the front of the window stack on Windows, Linux and macOS.

Repository (GitHub)
View/report issues

Topics

#window #desktop #macos #linux #windows

License

unknown (license)

Dependencies

flutter

More

Packages that depend on window_to_front

Packages that implement window_to_front