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

SignaturePad : Inside Bottomsheet dialog scrolling issue

Open vishalpatel1327 opened this issue 3 years ago • 3 comments

First of all thanks to creating such a great package.

When I am using the Signature pad in bottom sheet having issue to draw sign. check video

https://user-images.githubusercontent.com/14329287/178502215-6ac7c242-1f94-498d-be10-e08a831190a5.mp4

vishalpatel1327 avatar Jul 12 '22 13:07 vishalpatel1327

showModalBottomSheet( shape: const RoundedRectangleBorder( borderRadius: BorderRadius.vertical( top: Radius.circular(20), ), ), context: context, builder: (context) => SignatureDialog()); }

vishalpatel1327 avatar Jul 12 '22 13:07 vishalpatel1327

` class SignatureDialog extends StatefulWidget { const SignatureDialog({Key? key}) : super(key: key);

@override State<SignatureDialog> createState() => _SignatureDialogState(); }

class _SignatureDialogState extends State<SignatureDialog> { @override Widget build(BuildContext context) { return Padding( padding: EdgeInsets.all(16), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( "Digital Signature", style: TextStyle( fontSize: 16, fontWeight: FontWeight.bold, color: primaryColor), ), const Text( "This signature will be displayed on sales invoices.", style: TextStyle( fontSize: 12, fontWeight: FontWeight.w500, color: Colors.black54), ), const SizedBox( height: 8, ), Container( decoration: BoxDecoration( border: Border.all(color: Colors.black), borderRadius: BorderRadius.all(Radius.circular(4))), width: MediaQuery.of(context).size.width, height: 150, child: const SfSignaturePad( minimumStrokeWidth: 3, maximumStrokeWidth: 6, strokeColor: Colors.black, ), ), Row( children: [ Expanded( child: OutlinedButton.icon( icon: const Icon( Icons.refresh, size: 14, ), onPressed: () { Navigator.of(context).pop(); // Validate returns true if the form is valid, or false otherwise. }, label: const Text("Reset")), ), const SizedBox( width: 16, ), Expanded( child: ElevatedButton.icon( icon: const Icon( Icons.search_rounded, size: 14, ), onPressed: () { Navigator.of(context).pop(); }, label: const Text("Search")), ), ], ) ], ), ); } }`

vishalpatel1327 avatar Jul 15 '22 06:07 vishalpatel1327

getting same problem please tell me if you resolved this issue

beamAkshay avatar Jul 22 '22 10:07 beamAkshay

@davsyncfusion can you guys look into it?

vishalpatel1327 avatar Oct 18 '22 06:10 vishalpatel1327

I have the same scrolling problem in PageView and ListView ..

Policy56 avatar Mar 29 '23 15:03 Policy56

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