window_manager
इस प्लगइन के द्वारा फ्लटर डेस्कटॉप एप्लिकेशन को विंडो के आकार को बदलने और पुनर्स्थापित करने की अनुमति मिलती है।
window_manager प्लगइन फ्लटर डेस्कटॉप एप्लिकेशन के लिए विस्तृत विंडो प्रबंधन क्षमता प्रदान करता है, जिससे विंडो के आकार, स्थिति, दिखावट, बंद व्यवहार और इवेंट के लिए पूर्ण नियंत्रण मिलता है।
^6.2.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
⚠️ Migration Notice: This plugin is being migrated to libnativeapi/nativeapi-flutter
The new version is based on a unified C++ core library (libnativeapi/nativeapi), providing more complete and consistent cross-platform native API support.
pub version Pub Monthly Downloads https://img.shields.io/discord/884679008049037342.svg All Contributors
This plugin provides comprehensive window management capabilities for Flutter desktop applications, enabling full control over window size, position, appearance, close behavior, and listening to events.
English | 简体中文
| Linux | macOS | Windows |
|---|---|---|
| ✔️ | ✔️ | ✔️ |
Add this to your package's pubspec.yaml file:
dependencies:
window_manager: ^0.5.1
import 'package:flutter/material.dart';
import 'package:window_manager/window_manager.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Must add this line.
await windowManager.ensureInitialized();
WindowOptions windowOptions = WindowOptions(
size: Size(800, 600),
center: true,
backgroundColor: Colors.transparent,
skipTaskbar: false,
titleBarStyle: TitleBarStyle.hidden,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
});
runApp(MyApp());
}
Please see the example app of this plugin for a full example.
| LiJianying LiJianying 💻 |
A Arif A S A Arif A S 💻 |
J-P Nurmi J-P Nurmi 💻 |
Dixeran Dixeran 💻 |
nikitatg nikitatg 💻 |
Kristen McWilliam Kristen McWilliam 💻 |
Kingtous Kingtous 💻 |
| Prome Prome 💻 |
Bin Bin 💻 |
youxiachai youxiachai 💻 |
Allen Xu Allen Xu 💻 |
CodeDoctor CodeDoctor 💻 |
Jean-Christophe Binet Jean-Christophe Binet 💻 |
Jon Salmon Jon Salmon 💻 |
| Karol Wrótniak Karol Wrótniak 💻 |
LAIIIHZ LAIIIHZ 💻 |
Mikhail Kulesh Mikhail Kulesh 💻 |
Prateek Sunal Prateek Sunal 💻 |
Ricardo Boss Ricardo Boss 💻 |
||
| https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg Add your contributions | ||||||