Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="webapps-flutter-particles" version="0.0.0">
  <name>FlutterDemo</name>
  <icon src="icon.svg"/>
  <content src="index.html" type="text/html"/>
  <description>HTML5 Mediaplayer demo</description>
  <author>Igalia, S.L.</author>
  <license>APL 2.0</license>
  <feature name="urn:AGL:widget:required-permission">
    <param name="urn:AGL:permission::public:no-htdocs" value="required" />
    <param name="urn:AGL:permission::public:display" value="required" />
  </feature>
  <feature name="urn:AGL:widget:required-api">
    <param name="homescreen" value="ws" />
  </feature>
</widget


To access the current appFw apis used by the html5 webaaps, a wrapper needs to be implemented. Dart provides a js interop library that can be used to implemented such wrapper. Here's the current work in progress:


Dart WIP agljs wrapper implementation

https://github.com/rogerzanoni/agljs.dart


Using this library it was possible to implement a sample application that display all the "runnable" applications in a list and activates them using the showWindow call:


Flutter WIP implementation of the agl-demo application launcher

...