Flutter 电子签名

依赖:signature: ^3.2.1
基本用方法

 bool landScape = false; // 是否横屏

  final SignatureController _signatureController = SignatureController(
    penStrokeWidth: 1, // 线条宽度
    penColor: Colors.black, // 线条颜色
    exportBackgroundColor: Colors.transparent, // 导出图片背景色
  );
DrawView(
                    signatureController: _signatureController,
                    width: double.infinity,
                    height: 200,
                    landScape: landScape,
                    biggerCallback: () {
                      setState(() {
                        landScape = true;
                      });
                    },
                    resetCallback: () {
                      setState(() {
                        landScape = true;
                      });
                    },
                  ),

用法


import 'package:repair_a

猜你喜欢

转载自blog.csdn.net/qq_28641023/article/details/118766385