Comments (9)
I have solved this issue by using ClipRect as the parent for the Signature widget
.
from signature.
I don't think this is fixed. Using 5.0.1, even added a row and flexible around it like in sample.
return Column(children: [
Row(
children: [
Flexible(
flex: 2,
child: Signature(
controller: _signatureController,
backgroundColor: CoreTheme.gray,
height: 100,
))
],
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: TextFormField(
minLines: 1,
maxLines: 1,
textCapitalization: TextCapitalization.words,
keyboardType: TextInputType.name,
decoration: InputDecoration(
hintText: 'Type Signatory Name',
hintStyle: CoreTheme.textStyleParagraph(color: FontColor.gray),
border: InputBorder.none,
),
onSaved: (name) => onValueChanged(context, name: name)
),
),
Divider(thickness: 1),
]);
from signature.
Same here. If I don't set a width and height for Signature widget, I can draw outside of its border. It doesn't need to be inside Row.
from signature.
Fix released in 5.0.1
from signature.
Same here, still doesn't work.
Signature seems to be open to the right and bottom side, even when i set a width value.
child: SingleChildScrollView(
child: Column(
children: [
const SizedBox(
height: 30,
),
Signature(
controller: _companySignatureController,
height: 150,
backgroundColor: Colors.grey,
),
Is there a hack to fix this on our side or a package version to go down in order that this works again meanwhile?
from signature.
Same as me, I am drawing everywhere. Really a big problem for me. What can I do?
from signature.
The workaround I did was, I made it a full screen landscape view problem solved for my use case.
from signature.
Not possible for me since i have to offer 2 signature areas in my view.
If the developer is not able to react soon i will have to find another package or implement this feature by myself.
from signature.
My hack solution is the following: I adjusted function SignatureState::_addPoint like this:
final myWidth = widget.width ?? screenSize!.width;
final myHeight = widget.height ?? screenSize!.height;
//SAVE POINT ONLY IF IT IS IN THE SPECIFIED BOUNDARIES
if (o.dx > 0 && o.dx < myWidth &&
o.dy > 0 && o.dy < myHeight) {
And when defining a height and width explicitely or implicitely (e.g. by using a LayoutBuilder around Signature) it seems to work for me.
The problem with the original code seems to be that it doesn't take into account the optionally defined width and height parameters, which both are <= their screenSize pendants, and if they are smaller drawing across the right and bottom borders is possible.
from signature.
Related Issues (20)
- App crashes spontaneously while drawing HOT 2
- problem with signature with Samsung HOT 3
- Black area in horizontal screenmode HOT 1
- Drawing gradually show after continuous drawing
- svg export can have a reduced size HOT 2
- Wrapping the signature widget in padding draws out of right boundry HOT 1
- Problem with using Signature in a Stack HOT 1
- how can add text on signature ?
- when try to use m-pencil with signature the app hang
- Export toRawSVG dose not working correctly HOT 8
- When use onLongPress method to clear signature pad, it clear signature but when we start draw signature again it will display dot in position where we press long tap HOT 2
- Can we populate saved signature to signature pad? HOT 1
- Invalid width setting for iOS brush
- Dynamic Pressure Support breaks screen with Ipad and Apple Pencil HOT 1
- Signature svg error HOT 1
- SIgnatureController doesn't return Image from flutter/material.dart HOT 1
- Dynamic color change for penColor HOT 1
- _controller.isEmpty() constantly listening to changes to signature pad HOT 2
- toJson: Converting object to an encodable object failed: Instance of 'Point' HOT 4
- Contributing Guide missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signature.