base64 img src in WebUI leads to an error

Issue Here is the problematic part of the template: <ul id=”list”> <template iterate=’file in convertedfiles.files’> <li>{{file.filename}} <template if=’file.isImage’> <img src=”{{file.src}}” alt=”{{file.filename}}”><br/> Source: {{file.src}} </template> </li> </template> </ul> convertedfiles is a list of AndroidFile: class AndroidFile { File _file; String filename;

Continue reading

How do I structure a "Controller" in Dart's web_ui?

Issue I have the following code xviewcontainer.html <!DOCTYPE html> <html> <head> <title>xviewcontainer</title> <link rel=”components” href=”xsearch.html”> <link rel=”components” href=”xcard.html”> </head> <body> <element name=”x-view-container” constructor=”ViewContainerComponent” extends=”div”> <template> <template instantiate=”if view == ‘SEARCH_VIEW'”> <x-search></x-search> </template> <template instantiate=”if view == ‘CARD_VIEW'”> <x-card></x-card> </template> </template>

Continue reading