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

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

example/lib/main.dart

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

import './pages/home.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primaryColor: Color(0xff416ff4),
        canvasColor: Colors.white,
        scaffoldBackgroundColor: Color(0xffF7F9FB),
        dividerColor: Colors.grey.withOpacity(0.3),
      ),
      builder: BotToastInit(),
      navigatorObservers: [BotToastNavigatorObserver()],
      home: HomePage(),
    );
  }
}
17
likes
130
pub points
88%
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