패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.6.0

window_manager

이 플러그인을 사용하면 Flutter 데스크톱 앱에서 창 크기 조정 및 위치 재설정이 가능합니다.

macOSWindowsLinux
30일 다운로드
93.2만
좋아요
1.1천
Pub 점수
160

패키지 설치

flutter pub add window_manager

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

window_manager는 macOS, Windows, Linux용 데스크톱 애플리케이션을 위한 Flutter 플러그인입니다. 개발자가 창의 크기, 위치, 표시 여부와 같은 속성을 프로그래밍 방식으로 제어할 수 있도록 해줍니다. 이 패키지를 사용하면 사용자가 창의 크기와 위치를 동적으로 조정할 수 있어, 데스크톱 중심의 Flutter 앱에서 사용자 경험을 향상시킬 수 있습니다. 네이티브 코드 없이도 창 동작을 관리할 수 있는 간단한 API를 제공합니다. 플러그인은 Flutter UI 프레임워크와 원활하게 통합되며, 다양한 플랫폼 간 반응형 창 관리를 지원합니다.

사용 사례

  • 프로그래밍적으로 창 크기 조정
  • 앱 창 재배치
  • 창 가시성 관리
  • 부유형 또는 드래그 가능한 창 만들기
  • 사용자 지정 창 동작 구현

주요 기능

  • 크로스 플랫폼 지원 (macOS, Windows, Linux)
  • 윈도우 조작을 위한 간단한 API
  • 윈도우 크기 조절 및 위치 지정을 지원합니다
  • 네이티브 플랫폼 코드가 필요하지 않습니다
  • Flutter UI와의 원활한 통합

적합한 대상

  • 데스크톱 중심의 플러터 애플리케이션
  • 동적 창 제어가 필요한 앱
  • 다수의 데스크톱 플랫폼을 대상으로 하는 개발자
  • 사용자 정의 창 레이아웃
  • 고급 데스크톱 UX 기능

고려 사항

  • Flutter 3.0 이상이 필요합니다
  • 데스크톱 플랫폼에 한정
  • 플랫폼별 구성이 필요할 수 있습니다
  • 모바일 또는 웹 앱에 적합하지 않습니다
  • 운영 체제 간에 동작이 약간 다를 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

⚠️ 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.

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.


English | 简体中文


Platform Support

Linux macOS Windows
✔️ ✔️ ✔️

Documentation

Quick Start

Installation

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

dependencies:
  window_manager: ^0.5.1
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.

Related Articles

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

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트

순위