screen_retriever 0.1.4 icon indicating copy to clipboard operation
screen_retriever: ^0.1.4 copied to clipboard

This plugin allows Flutter desktop apps to Retrieve information about screen size, displays, cursor position, etc.

screen_retriever #

pub version

This plugin allows Flutter desktop apps to Retrieve information about screen size, displays, cursor position, etc.


English | 简体中文


Platform Support #

LinuxmacOSWindows
✔️✔️✔️

Quick Start #

Installation #

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

dependencies:
  screen_retriever: ^0.1.4

Or

dependencies:
  screen_retriever:
    git:
      url: https://github.com/leanflutter/screen_retriever.git
      ref: main

Usage #

Display? _primaryDisplay;
List<Display> _displayList = [];

void _init() async {
  _primaryDisplay = await screenRetriever.getPrimaryDisplay();
  _displayList = await screenRetriever.getAllDisplays();
  setState(() {});
}

Please see the example app of this plugin for a full example.

Who's using it? #

API #

ScreenRetriever #

MethodDescriptionLinuxmacOSWindows
getCursorScreenPointReturns Offset - The current absolute position of the mouse pointer.✔️✔️✔️
getPrimaryDisplayReturns Display - The primary display.✔️✔️✔️
getAllDisplaysReturns List<Display> - An array of displays that are currently available.✔️✔️✔️

License #

MIT

12
likes
130
pub points
89%
popularity

Publisher

verified publisher iconleanflutter.org

This plugin allows Flutter desktop apps to Retrieve information about screen size, displays, cursor position, etc.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on screen_retriever