Replies: 3 comments 3 replies
-
You can define your own |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have just re-read your question, if you need padding for everything, why don't you just wrap a |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now I have mixed image and text being rendered, but primarily text.
I have a
Padding
widget which surrounds my content which I have inserted duringbuildText
in my WidgetFactoryHowever, sometimes my content is only an image, with no text and so in those cases, the image is rendered without any padding. In these cases I wanted to add my
_TextPadding
to thebuildImage
as well.However, if I add it to
buildImage
, then the images will always have a padding. I only want to add the padding only if the image is alone and no buildText was run. I'm also going to selectively apply it only to certain images (depending on their meta.element.classes.contains())Is there an easy way to determine if
buildImage
was run andbuildText
was not run? ie. the content has no text, its just an imageBeta Was this translation helpful? Give feedback.
All reactions