window_manager 0.5.0 copy "window_manager: ^0.5.0" to clipboard
window_manager: ^0.5.0 copied to clipboard

This plugin allows Flutter desktop apps to resizing and repositioning the window.

๐Ÿš€ Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.

window_manager #

pub version Pub Monthly Downloads 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.

Note: This plugin is planned to migrate to nativeapi to improve maintainability and performance, but the solution is still experimental at this stage.


English | ็ฎ€ไฝ“ไธญๆ–‡


Platform Support #

Linux macOS Windows
โœ”๏ธ โœ”๏ธ โœ”๏ธ

Documentation #

Quick Start #

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  window_manager: ^0.5.0

Usage #

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.

Who's using it? #

  • Airclap - Send any file to any device. cross platform, ultra fast and easy to use.
  • AuthPass - Password Manager based on Flutter for all platforms. Keepass 2.x (kdbx 3.x) compatible.
  • Biyi (ๆฏ”่ฏ‘) - A convenient translation and dictionary app written in dart / Flutter.
  • BlueBubbles - BlueBubbles is an ecosystem of apps bringing iMessage to Android, Windows, and Linux
  • LunaSea - A self-hosted controller for mobile and macOS built using the Flutter framework.
  • Linwood Butterfly - Open source note taking app written in Flutter
  • RustDesk - Yet another remote desktop software, written in Rust. Works out of the box, no configuration required.
  • Ubuntu Desktop Installer - This project is a modern implementation of the Ubuntu Desktop installer.
  • UniControlHub - Seamlessly bridge your Desktop and Mobile devices
  • EyesCare - A light-weight application following 20 rule adherence for optimum eye health

Contributors #

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

๐Ÿ’ป
Add your contributions

License #

MIT

1k
likes
160
points
176k
downloads

Publisher

verified publisherleanflutter.dev

Weekly Downloads

This plugin allows Flutter desktop apps to resizing and repositioning the window.

Homepage
Repository (GitHub)
View/report issues

Topics

#window #window-resize #window-manager #desktop #desktop-window

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com
liberapay.com

License

MIT (license)

Dependencies

flutter, path, screen_retriever

More

Packages that depend on window_manager