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

A box which allows user sign and submit the result to handle your business.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(primarySwatch: Colors.deepOrange),
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Signature Box'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Padding(
              padding: EdgeInsets.symmetric(horizontal: 10),
              child: SignatureBox(
                width: 300,
                height: 200,
                onChanged: (value) {
                  print(value);
                },
              ),
            )
          ],
        ),
      ),
    );
  }
}
7
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A box which allows user sign and submit the result to handle your business.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on signature_box