scriptouch_easyscript 1.0.1 copy "scriptouch_easyscript: ^1.0.1" to clipboard
scriptouch_easyscript: ^1.0.1 copied to clipboard

PlatformWindows

Flutter wrapper for Scriptouch Easyscript Integration (https://scriptel.com/developers/easyscript/).

example/lib/main.dart

import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:scriptouch_easyscript/easyscript.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();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Scriptel Plugin Demo'),
        ),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(20),
            child: Column(
              children: [
                SignaturePreview(
                  signColor: Colors.indigo.shade700,
                  screenColor: Colors.white,
                  signStrokeWidth: 5,
                  signCapturePixelRatio: 1,
                  onSignCapture: (bytes) async {
                    var path = await bytes.saveToTempDir();
                    log("Signature image saved to: $path");
                  },
                  enableTouchSign: true,
                ),
                const TextField(autofocus: true),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
7
likes
150
pub points
0%
popularity

Publisher

verified publisherdreamorbit.com

Flutter wrapper for Scriptouch Easyscript Integration (https://scriptel.com/developers/easyscript/).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on scriptouch_easyscript