Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PainterController set background by picture from gallery #3

Open
thaibom95 opened this issue Dec 27, 2018 · 2 comments
Open

PainterController set background by picture from gallery #3

thaibom95 opened this issue Dec 27, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@thaibom95
Copy link

Hi. Thanks for your library. It's really good.
Can you add more property like background by picture from gallery? It will perfect.
Thanks.

@Joao-b4
Copy link

Joao-b4 commented Sep 24, 2019

I need this option, I can't find any library that will allow me to do this

@EP-u-NW EP-u-NW added enhancement New feature or request help wanted Extra attention is needed labels May 24, 2021
@knaeckeKami
Copy link

knaeckeKami commented Jun 11, 2021

this can easily be achieved by passing a child widget to to customPainter and using a foreground painter.
see https://gist.github.com/knaeckeKami/64f240c0aaf253596bd33f5fa0c4c5f2

I hacked this together for a quick proof of concept. It enables drawing on an image from a file. I also do some matrix-magic to transform the drawn path to fit on the original dimensions of the image, in case the image has a higher resolution than the phone screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants