Flutter-Bounty-Hunters / swift_ui

Flutter port of Swift UI
MIT License
63 stars 4 forks source link

[Spec] - Image: Typography #13

Closed matthew-carroll closed 8 months ago

matthew-carroll commented 8 months ago

Investigate the Image view to determine if there are any typography behaviors. If there are, add examples to the Swift UI gallery app, and then add details to the Image spec.

suragch commented 8 months ago

There are a few constructors that take a label parameter, which is of type Text. This is an example:

Image("flutter", label: Text("hello"))

However, the docs say this about label:

The label associated with the image. SwiftUI uses the label for accessibility.

As far as I can tell, there is no visual effect for the label:

flutter image with label

So I think we can close this issue.

matthew-carroll commented 8 months ago

Thanks for looking into it. I'll close this ticket. Please update the spreadsheet. CC @vincevargadev on the accessibility part.