flutter-examples icon indicating copy to clipboard operation
flutter-examples copied to clipboard

Signature Pad not working correctly

Open rainbowMehBerdaya opened this issue 4 years ago • 3 comments

SfSignaturePad not working correctly Whenever I try to sign that start with vertical drag, its just scroll the page

Here's my flutter infomation Flutter (Channel master, 2.5.0-6.0.pre.44, on macOS 12.0 21A5304g darwin-x64, locale en-ID)

Here's my code

SingleChildScrollView(
  child: Column(
    children: [
      anotherWidget(),
      anotherWidget(),
      Container(
        margin: const EdgeInsets.fromLTRB(24.0, 0.0, 72.0, 0.0),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(10.0),
          border: Border.all(
            color: Theme.of(context).colorScheme.primary,
            width: 0.5,
          ),
        ),
        child: ClipRRect(
          borderRadius: BorderRadius.circular(10.0),
          child: AspectRatio(
            aspectRatio: 1,
            child: Stack(
              fit: StackFit.expand,
              children: [
                SfSignaturePad(
                  key: signatureReceiver,
                  minimumStrokeWidth: 1,
                  maximumStrokeWidth: 3,
                  strokeColor: Theme.of(context).colorScheme.primary,
                  backgroundColor: Colors.white,
                  onDrawEnd: () {
                    saveSignature(type);
                  },
                ),
                Positioned(
                  left: 5,
                  child: TextButton(
                    style: TextButton.styleFrom(
                      shape: RoundedRectangleBorder(
                        borderRadius: BorderRadius.circular(10.0),
                      ),
                      backgroundColor: Theme.of(context).colorScheme.primary,
                      padding: EdgeInsets.zero,
                    ),
                    onPressed: () {
                      retake(type);
                    },
                    child: const Text(
                      'Retake',
                      style: TextStyle(
                        color: Colors.white,
                      ),
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
      anotherWidget(),
      anotherWidget(),
    ],
  ),
),

rainbowMehBerdaya avatar Aug 24 '21 03:08 rainbowMehBerdaya

Oh nevermind, flutter fix it with Flutter (Channel master, 2.5.0-7.0.pre.211, on macOS 12.0 21A5304g darwin-x64, locale en-ID)

rainbowMehBerdaya avatar Aug 24 '21 03:08 rainbowMehBerdaya

Bug again for Flutter 3.0.1

rainbowMehBerdaya avatar May 30 '22 15:05 rainbowMehBerdaya

Bug again for Flutter 3.0.1

have you found the solution?

JustStartedHere avatar Jun 02 '22 06:06 JustStartedHere

i have this issue , please fix it

muhiddinxon avatar Feb 25 '23 10:02 muhiddinxon

Hello @JustStartedHere sorry for the late reply

I stop using this package [because some Flutter version work, some not], and use another package

rainbowMehBerdaya avatar Mar 01 '23 07:03 rainbowMehBerdaya

We have resolved the issue already, so we kindly request you to upgrade the latest version.

https://pub.dev/packages/syncfusion_flutter_signaturepad/versions/24.2.5

LavanyaGowtham2021 avatar Feb 14 '24 14:02 LavanyaGowtham2021

Please reopen this ticket if you need any other assistance on this.

LavanyaGowtham2021 avatar Feb 27 '24 06:02 LavanyaGowtham2021