flutter


Creating raw image from Widget or Canvas


My end goal is to be able to share a dynamic image by either passing the raw image data or saving the image to disk for a native android/ios service to share. How would I convert a Widget or Canvas in flutter to raw image data (like byte[])?
This is not currently possible from Dart code running in a FlutterView today, however we have a bug on file tracking implementing such: https://github.com/flutter/flutter/issues/6774
It is possible to render Flutter widgets as part of a FlutterView and then use Java or Objective-C interfaces onto the FlutterView to capture a picture, such as the standard android.View.getBitmap which FlutterView implements:
https://docs.flutter.io/javadoc/io/flutter/view/FlutterView.html#getBitmap--
If this important to your application needs and would like to be able to capture Bitmaps of Widget trees from inside Dart code we'd love to hear about it. Please feel encouraged to provide further context on the above referenced issue!

Related Links

How do I supply an initial value to a text field?
How to control sizing behaviour to be based on parent or child?
Programmatically scrolling to the end of a ListView
Get Tap Position Relative to Widget
How to get the smallest child in a box?
Replace initial Route in MaterialApp without animation?
How to make 1/3 of an image take up the full screen
How to make an Input's hintText disappear when the user starts typing?
PageStorage in Flutter - how does it work?
How to select Development team for iOS app created in Flutter
Sizing elements to percentage of screen width/height
Animated Widget only animates once
How can I dial the phone from Flutter?
How do I open a web browser (URL) from my Flutter code?
Unable to install Flutter on my windows machine
PageView with horizontal, non-filled children

Categories

HOME
validation
mocking
common-lisp
dynamics-crm-365
ssl-certificate
runnable
spring-roo
apacheds
backand
box
payment-processing
push
gcov
zend-expressive
highlight
asp.net-mvc-5.2
numericupdown
condor
cloudrail
spring-boot-admin
swig
appcelerator-alloy
collision
rtp
software-distribution
semantics
monads
plm
angular2-databinding
toastr
groove
blockui
ubuntu-server
ecmascript-4
vtable
vue2
worldpay
linear
mdanalysis
nexus-5
projection
syncfusion
pulseaudio
adal.js
arm7
uifont
jasmine2.0
mashery
jahia
jvm-arguments
jcuda
itamae
webpagetest
xmllint
namenode
bash-completion
ota
blpapi
membership
radix-sort
ospf
par
biojava
structured-programming
janino
imake
information-schema
gdk
httpservice
express-jwt
iphone-privateapi
bunny
keymapping
parsekit
libtorrent-rasterbar
re2c
ccombobox
adlds
arbtt
speaker
hamlc
cakephp-2.1
rc-shell
google-profiles-api
expression-encoder-sdk
jscience
httpcontext.cache
jetspeed2
pong
coolstorage
nstreecontroller
android-3.1
program-transformation
high-traffic
xquery-update
posterous
stsadm
sqlprofileprovider

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App