spen_remote 0.0.4 copy "spen_remote: ^0.0.4" to clipboard
spen_remote: ^0.0.4 copied to clipboard

PlatformAndroid

A Flutter plugin to integrate with the Samsung S Pen Remote SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:spen_remote_example/spen.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    SPen().initSPen();
  }

  @override
  void dispose() {
    super.dispose();
    SPen().dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(
          child: Text('Take out your stylus, and check print statements.'),
        ),
      ),
    );
  }
}
1
likes
160
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to integrate with the Samsung S Pen Remote SDK.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on spen_remote

Packages that implement spen_remote