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

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

window_to_front #

pub package

A Flutter plugin that brings your desktop application window back to the front of the window stack.

After an authentication flow — or any other use case where you hand off to an external program such as a web browser — the user is often left staring at the browser window. Ideally the application should return to the front automatically. window_to_front does exactly that.

Supported platforms #

Platform Supported
Windows
Linux
macOS

Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  window_to_front: ^0.0.4

Then run:

flutter pub get

Usage #

import 'package:window_to_front/window_to_front.dart';

// Call this when you want your application window to come to the front,
// for example right after returning from an external browser sign-in flow.
await WindowToFront.activate();

See the example for a complete sample.

License #

Released under the MIT License.

19
likes
160
points
351k
downloads

Documentation

API reference

Publisher

verified publisherdevmonk.io

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

MIT (license)

Dependencies

flutter

More

Packages that depend on window_to_front

Packages that implement window_to_front