Comments (7)
Yeah I dont know, hope my PR #69 goes through then we will have a nice updated package and the new toPngBytes
method
from signature.
No you are not doing something wrong, its the toPngBytes
method which sets fixed height and width values.
Current workaround would be something like this:
ui.Image? img = await _controller?.toImage(
height: _controller?.defaultHeight ?? 0,
width: _controller?.defaultWidth ?? 0
);
ByteData? byteData = await img?.toByteData(
format: ui.ImageByteFormat.png
);
// Image data
var data = byteData?.buffer.asUint8List();
Where ui.Image is from import 'dart:ui' as ui;
from signature.
Awesome! Thanks, @yurtemre7.
That seems to do the trick, what is odd though is that it sometimes worked without any issues.
from signature.
For now you can just use version 5.0.1. It doesn't contain this bug.
from signature.
//WIDTH AND HEIGHT IS OPTIONAL. IMAGE WILL BE CENTERED
final ui.Image? image = await toImage(height: 500, width: 400); // --> Here is the issue
Height and width by default are set, so, when u set a higher value on the widget it breaks
@yurtemre7 PR #69 might fix the issue, @DmitrySikorsky .
from signature.
Hi
sorry for late response, we did not have available maintenance window for a while. I am looking at PR #69 right now
from signature.
Fixed in 5.3.0
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.