Search packages, repositories and app categories

Package detailsv1.0.0

window_to_front

To have the application automatically bring itself to the front of the stack of application windows for Mac, Linux & Desktop.

macOSWindowsLinux
30-day downloads
733K
Likes
19
Pub points
160

Install package

flutter pub add window_to_front

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The window_to_front package enables desktop applications built with Flutter to automatically bring their window to the front of the window stack on macOS, Windows, and Linux. This is particularly useful for apps that need to capture user attention, such as notification tools, system monitors, or utilities requiring immediate interaction. The package provides a simple API to focus the app's window across different operating systems without requiring platform-specific code. It integrates seamlessly into existing Flutter projects and works reliably on supported desktop platforms.

Use cases

  • Notification pop-ups
  • System utility apps
  • Task reminder tools
  • Auto-focus during events
  • Desktop automation workflows

Key features

  • Cross-platform desktop support
  • Simple API integration
  • Automatic window focus
  • No native code required
  • Works on macOS, Windows, and Linux

Suitable for

  • Desktop app developers
  • Notification systems
  • User-facing utilities
  • Automation tools
  • Apps needing immediate visibility

Considerations

  • Limited to desktop platforms
  • May require user permission on some OS
  • Behavior varies slightly by OS
  • Not suitable for mobile apps
  • Depends on underlying OS window management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

window_to_front

pub package GitHub Sponsors

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.

Categories

Source repository

Projects using this package