desktop_window 0.3.0

Flutter

Flutter desktop plugin(macOS/Linux/Windows) to get and change window size.

desktop_window #

Flutter plugin for Flutter desktop(macOS/Linux/Windows) to change window size.

Usage #

import 'package:desktop_window/desktop_window.dart';

Future testWindowFunctions() async {
    Size size = await DesktopWindow.getWindowSize();
    print(size);
    await DesktopWindow.setWindowSize(Size(500,500));

    await DesktopWindow.setMinWindowSize(Size(400,400));
    await DesktopWindow.setMaxWindowSize(Size(800,800));

    await DesktopWindow.resetMaxWindowSize();
    await DesktopWindow.toggleFullScreen();
    bool isFullScreen = await DesktopWindow.getFullScreen();
    await DesktopWindow.setFullScreen(true);
    await DesktopWindow.setFullScreen(false);
}

Contributers #

Linux support has been contributed by Justus Fluegel (https://github.com/Technikkeller)

8
likes
70
pub points
75%
popularity

Flutter desktop plugin(macOS/Linux/Windows) to get and change window size.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mix1009@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on desktop_window