FLUTTER ECOSYSTEM

sumitvekariya/window_to_front

適用於 Windows、Linux 和 macOS 的 Flutter 桌面外掛程式,可在基於瀏覽器的驗證流程後將您的應用視窗置頂顯示。支援 SwiftPM。

window_to_front 專案封面
Stars
8
Forks
1
最近推送(UTC)
2026年7月4日
專案狀態
未封存
Sarkazein GitHub avatar
GITHUB User

Sarkazein ↗

OSS

語言C++DartCMakeSwiftCRubyShell

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^6.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.