v1.0.0
window_to_front
為了讓應用程式在 Mac、Linux 與桌面系統上自動將自身置於應用程式視窗堆疊的最前面。
19喜歡 56.9萬近 30 天下載160Pub 分數
macOSWindowsLinux
適用於 Windows、Linux 和 macOS 的 Flutter 桌面外掛程式,可在基於瀏覽器的驗證流程後將您的應用視窗置頂顯示。支援 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.