window_to_front
मैक, लिनक्स और डेस्कटॉप के लिए ऐप को स्वचालित रूप से ऐप विंडो स्टैक के सामने लाने के लिए।
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.