Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mix1009/desktop_window
Flutter plugin for Flutter desktop(macOS/Linux/Windows) to change window size.
https://github.com/mix1009/desktop_window
Last synced: 5 days ago
JSON representation
Flutter plugin for Flutter desktop(macOS/Linux/Windows) to change window size.
- Host: GitHub
- URL: https://github.com/mix1009/desktop_window
- Owner: mix1009
- License: mit
- Created: 2020-05-25T06:31:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T11:20:12.000Z (2 months ago)
- Last Synced: 2024-12-21T16:07:57.136Z (12 days ago)
- Language: C++
- Homepage:
- Size: 171 KB
- Stars: 84
- Watchers: 4
- Forks: 25
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - desktop_window - Flutter desktop plugin(macOS/Linux/Windows) to get and change window size. (Packages)
README
# 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);
bool hasBorders = await DesktopWindow.hasBorders;
await DesktopWindow.setBorders(false);
await DesktopWindow.setBorders(true);
await DesktopWindow.toggleBorders();
await DesktopWindow.focus();
}
```## Contributers
Linux support has been contributed by Justus Fluegel (https://github.com/JustusFluegel)