awareframework_screen 0.7.0 copy "awareframework_screen: ^0.7.0" to clipboard
awareframework_screen: ^0.7.0 copied to clipboard

A screen sensor library for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:awareframework_screen/awareframework_screen.dart';

void main() => runApp(new MyApp());

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

class _MyAppState extends State<MyApp> {
  ScreenSensor? sensor;
  ScreenSensorConfig? config;

  @override
  void initState() {
    super.initState();

    config = ScreenSensorConfig()..debug = true;

    sensor = new ScreenSensor.init(config!);

    sensor?.start();
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
          appBar: new AppBar(
            title: const Text('Plugin Example App'),
          ),
          body: Card()),
    );
  }
}
0
likes
140
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

A screen sensor library for Flutter.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_screen