Setting hardcoded value in bound attribute

Issue

I have a component with a “label” attribute and since this label will not change, I want to specify it when I declare the component:

<parking-list
        label="PARKINGS"
        parkings="{{parkings}}"
        on-showparking="parkingList_showParkingHandler"></parking-list>
<parking-list
        label="SHOP AND GO"
        parkings="{{shopAndGoParkings}}"
        on-showparking="parkingList_showParkingHandler"></parking-list>

The label value is not rendered properly though. I worked around this with label="{{'PARKINGS'}}". Is this simply not supported or will this be supported in a future release?

Solution

should be fixed in 0.8.0 see discussion

Answered By – Günter Zöchbauer

Answer Checked By – Dawn Plyler (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *