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

Bugfix: Image control attribute src_base64 accepts str now #187

Merged
merged 1 commit into from
Aug 13, 2022

Conversation

jantosi
Copy link
Contributor

@jantosi jantosi commented Aug 13, 2022

The Dart component for Image accepts either src (path as string), or srcBase64 (Base64-encoded image as string).
See https://github.com/flet-dev/flet/blob/main/client/lib/controls/image.dart#L27-L28

This doesn't match Image control constructor on the Python library side:
See https://github.com/flet-dev/flet/blob/main/sdk/python/flet/image.py#L59

This PR aligns the Python component interface to the Dart one.

@CLAassistant
Copy link

CLAassistant commented Aug 13, 2022

CLA assistant check
All committers have signed the CLA.

@FeodorFitsner FeodorFitsner merged commit 47935c1 into flet-dev:main Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants