v1.0.0
window_to_front
Mac、Linux、デスクトップ用にアプリケーションが自動的にアプリケーションウィンドウスタックの前面に移動するようにするため。
19いいね 56.9万30日間ダウンロード160Pub ポイント
macOSWindowsLinux
Flutter デスクトッププラグイン (Windows、Linux、macOS) で、ブラウザベースの認証フロー後にアプリケーションウィンドウを前面に表示します。SwiftPM対応。
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
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.
| Platform | Supported |
|---|---|
| Windows | ✅ |
| Linux | ✅ |
| macOS | ✅ |
Add the dependency to your pubspec.yaml:
dependencies:
window_to_front: ^0.0.4
Then run:
flutter pub get
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.
Released under the MIT License.