window_manager_forked 0.0.1 copy "window_manager_forked: ^0.0.1" to clipboard
window_manager_forked: ^0.0.1 copied to clipboard

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

window_manager_forked #

Platform Support #

Linux macOS Windows
✔️ ✔️ ✔️

Quick Start #

Installation #

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

dependencies:
  window_manager_forked: ^0.0.1

Usage #

import 'package:flutter/material.dart';
import 'package:window_manager_forked/window_manager_forked.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // Must add this line.
  await windowManagerForked.ensureInitialized();

  WindowOptions windowOptions = WindowOptions(
    size: Size(800, 600),
    center: true,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.hidden,
  );
  windowManagerForked.waitUntilReadyToShow(windowOptions, () async {
    await windowManagerForked.show();
    await windowManagerForked.focus();
  });

  runApp(MyApp());
}

License #

MIT

1
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

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

Topics

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, screen_retriever

More

Packages that depend on window_manager_forked

Packages that implement window_manager_forked