<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Framework Markup Language on Medium]]></title>
        <description><![CDATA[Stories by Framework Markup Language on Medium]]></description>
        <link>https://medium.com/@FrameworkMarkupLanguage?source=rss-34b40392de0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7GM5jONQPyCuXrlvJiva-w.png</url>
            <title>Stories by Framework Markup Language on Medium</title>
            <link>https://medium.com/@FrameworkMarkupLanguage?source=rss-34b40392de0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:22:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@FrameworkMarkupLanguage/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build a Celebrity Jet Tracking Dashboard in 360 lines with Flutter Markup Language —  Part 2: Data…]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/build-a-celebrity-jet-tracking-dashboard-in-360-lines-with-flutter-markup-language-part-2-data-65addf866b21?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/65addf866b21</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <category><![CDATA[dashboard]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 18:57:33 GMT</pubDate>
            <atom:updated>2024-09-06T14:41:40.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a Celebrity Jet Tracking Dashboard in 380 lines with Framework Markup Language — Part 2: Data Connection and Display</h3><h3>Part 2: Connecting Data and Functions</h3><h4>In this article we go over Part 2 of 2 of how to build a fully functional celebrity jet tracker in under an hour using Framework Markup Language, OpenSky and a few other REST API’s.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RT5REeNCXcq5VtJNv4XA9w.png" /></figure><p>In this article (Part 2 of 2), we will be wiring up the data, displaying different trends by manipulating data, and driving the UI from these manipulations with the goal of building a fully functioning Jet Tracker:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kyKSNTQ5ptT1e_VjIlsFhw.png" /><figcaption>The finished jet tracking dashboard</figcaption></figure><p><a href="https://medium.com/@TheOlajos/build-a-celebrity-jet-tracking-dashboard-in-380-lines-with-flutter-markup-language-part-1-ui-c114806d87b4">If you haven&#39;t read Part 1 yet, you can read it here.</a> <a href="https://jet.fml.dev/">Alternatively, you can check out a constantly updated version of the dashboard at jet.fml.dev!</a></p><blockquote>note: all jet tracking is being done using publicly available data and tail numbers.</blockquote><h3>Recap of Part 1</h3><p>In Part 1, we left off with the following dashboard’s UI <strong>created from 280 lines of FML</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gWHxf1D8F8GSBopAB5ciQ.png" /></figure><p>At this point, layout, interactive UI, and the overall display and placeholders for our application’s data have been implemented which is the bulk of the work. Next, we will look at wiring in data from various REST API’s, local databases, and combining and manipulating this data in FML to display new trends to the user.</p><p><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>Remember to follow along with an open copy of the FML Wiki to assist you when writing templates.</strong></a></p><h3>Connecting To and Displaying Data</h3><p>In order to provide live data, we need to connect to a mix of non changing and constantly changing datasets. If you want a simpler overview of datasources or their transforms, <a href="https://medium.com/@TheOlajos/quickly-connect-and-transform-network-api-data-in-your-cross-platform-app-using-flutter-markup-337ec09f47a9">you can check out our article here</a> before diving in to this section.</p><p>For the hardcoded datasets we are going to use for this tutorial, you can <a href="https://fml.dev/downloads/FMLJETTutorial.zip"><strong>download them here</strong></a> and examine their structure.</p><h4>Connect to Local Datasets</h4><p>First, we need to connect our three lists to the data above in order to change the dashboard. Starting with the list of users, we can grab the hardcoded dataset using a GET Datasource:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5-bUlsUniaSdgLBRvduGg.png" /><figcaption>The list built from the datasource</figcaption></figure><pre>&lt;!--We supply a relative url to the filepath within our fileserver--&gt;<br>&lt;GET id=&quot;userdata&quot; url=&quot;resources/planeuserdata.json&quot;/&gt;<br>&lt;!--We assign the datasource to the list allowing us to build the items as a prototype--&gt;<br>&lt;LIST id=&quot;userselect&quot; ... data=&quot;userdata&quot;&gt;</pre><p>Connecting this datasource to the list is easy, we can simply assign the datasource to the list with data=””, and set up bindings based on existing fields in the datasource:</p><pre>&lt;ITEM ...&gt;<br>      &lt;!--Removing the hardcoded url, we bind to the field imageUrl within the item--&gt;<br>      &lt;!--When given a datasource, list items become prototypes and create a new element for each root item--&gt;<br>      &lt;IMG url=&quot;{data.imageUrl}&quot; height=&quot;100%&quot;/&gt;<br>&lt;/ITEM&gt;</pre><p>Next, we will connect our jet list data, again from a hardcoded set like above, but in this case we will derive the dataset from the selected list items individual data, and access a deeper element which is also a list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGhQbtPaZQUwC3plBywAjA.png" /><figcaption>The list built from the subset of the initial list</figcaption></figure><pre>&lt;!--We can derive a datasource from another datasource or data widget for granular control--&gt;<br>&lt;!--Setting the root as jets allows us to use the sublist to create datarows--&gt;<br>&lt;DATA id=&quot;userjetdata&quot; value=&quot;{userselect.data}&quot; root=&quot;jets&quot;/&gt;<br>&lt;!--Assigning the datasource to the list as in the step above--&gt;<br>&lt;LIST id=&quot;taildata&quot; data=&quot;userjetdata&quot; ...&gt;<br>     &lt;ITEM id=&quot;planeitem&quot;&gt;<br>     ...<br>          &lt;!--In this case, we bind to tailNumber in the element list--&gt;<br>          &lt;!--data. refers to the datasource of the lists data for each row--&gt;<br>          &lt;TEXT value=&quot;{data.tailNumber}&quot;  .../&gt;<br>     &lt;/ITEM&gt;<br>&lt;/LIST&gt;</pre><h4>Connecting to REST API’s</h4><p>Finally, we will wire in the live data required to display the current state of the users jet we have selected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4QqGdK3pBW-UkzcFrey8A.png" /><figcaption>The flight list built from an api call</figcaption></figure><pre>&lt;!--We bind to the userjetdata list. This will allow the selected item to be passed into the url, and refire it.--&gt;<br>&lt;!--The bindings {20dpost} and {currenttime} within the url are set up in the next step--&gt;<br>&lt;!--Bind to the list of jets using {taildata.data.icaoNumber}. The binding will fire the url everytime it is selected--&gt;<br>&lt;GET id=&quot;trackerdata&quot; url=&quot;https://opensky-network.org/api/flights/aircraft?icao24={userjetdata.data.icaoNumber}&amp;amp;begin={20dpost}&amp;amp;end={currenttime}&quot;/&gt;</pre><p>After the first call to this datasource, we recommend copying the data returned and assigning a local datasource (as above) with the copied data until testing is complete.</p><p>As you can see, the url requires two epochs. We will create two VAR widgets to calculate the epoch from the current date minus 20 days using SYSTEM global bindings to get the current epoch:</p><pre>&lt;!--We subtract the current time minus 20 days in milliseconds--&gt;<br>&lt;VAR id=&quot;20dpost&quot; value=&quot;={currenttime}-864000&quot;/&gt;<br>&lt;!--The api expects a 10 digit epoch, so we must take a substring of the SYSTEMS 13 digit epoch--&gt;<br>&lt;VAR id=&quot;currenttime&quot; value=&quot;=substring({SYSTEM.epoch}, 0, 10)&quot;/&gt;</pre><p>We then assign the data to the LIST and bind to its fields:</p><pre>&lt;GET id=&quot;trackerdata&quot; .../&gt;<br>&lt;LIST id=&quot;planelist&quot; data=&quot;trackerdata&quot; ...&gt;<br>     &lt;ITEM ...&gt;<br>          &lt;ROW&gt;<br>              &lt;COL ...&gt;<br>                   &lt;!--We use an eval with a `??` null aware operator incase the binding does not exist to display N/A to the user--&gt;<br>                   &lt;TXT value=&quot;={data.estDepartureAirport} ?? &#39;N/A&#39;&quot; .../&gt;<br>                   &lt;!--Convert the firstseen epoch to a date using an eval function --&gt;<br>                   &lt;TXT value=&quot;=toDate(&#39;{data.firstSeen}&#39;, &#39;&#39;, &#39;h:mm dd/MM&#39;)&quot;/&gt;<br>              &lt;/COL&gt;<br>              &lt;ICON .../&gt;<br>              &lt;COL ...&gt;<br>                    &lt;!--We do the same as above using null aware to display TBD--&gt;<br>                    &lt;TXT value=&quot;={data.estArrivalAirport} ?? &#39;TBD&#39;&quot; style=&quot;h6&quot;/&gt;<br>                    &lt;!--We create a VAR for an eval that will be use in multiple places--&gt;<br>                    &lt;!--The existance of an arrival airport infers if the plane has landed with our dataset--&gt;<br>                    &lt;VAR id=&quot;hasArrived&quot; value=&quot;={data.estArrivalAirport} != null&quot;/&gt;<br>                    &lt;!--Using the VAR binding from above, a ternary operation returns what we expect the user to see--&gt;<br>                    &lt;TXT value=&quot;={hasArrived} ? toDate(&#39;{data.lastSeen}000&#39;, &#39;&#39;, &#39;h:mm dd/MM&#39;) : &#39;In Flight&#39;&quot;/&gt;<br>               &lt;/COL&gt;<br>          &lt;/ROW&gt;<br>          &lt;ROW ...&gt;<br>               &lt;COL halign=&quot;end&quot; valign=&quot;center&quot;&gt;<br>                    &lt;!--The duration is not in the dataset, so we must add it using transforms--&gt;<br>                    &lt;VAR id=&quot;durationHours&quot; value=&quot;=floor({data.duration}/60/60)&quot;/&gt;<br>                    &lt;VAR id=&quot;durationMinutes&quot; value=&quot;=floor({data.duration}/60%60)&quot;/&gt;<br>                    &lt;!--We evaluate hasArrived to display the text and correct color based on the arrival status--&gt;<br>                    &lt;TXT value=&quot;={hasArrived} ? &#39;Arrived&#39; : &#39;In Flight&#39;&quot; color=&quot;={hasArrived} ? green : yellow&quot;/&gt;<br>                    &lt;TXT value=&quot;Duration: {durationHours}h {durationMinutes}m&quot;/&gt;<br>               &lt;/COL&gt;<br>          &lt;/ROW&gt;<br>     &lt;/ITEM&gt;<br>&lt;/LIST&gt;</pre><h3>Manipulating Data Driven UI</h3><h4>Manipulating Datasources with TRANSFORMS</h4><p>Now, if this was enough data we would be very happy, but we want a few things from this dataset that isn’t offered by Opensky such as the airport name, locations, and more. Best practice would dictate you create an API service to make these calculations and return it to you. In our case, we are going to use built in functions, pretending we do not have the means to create our own query service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KU0Fexr2tKf1o33JAtJNaA.png" /><figcaption>The maniuplated data of flight duration</figcaption></figure><p>To do this, we will first use CALC transforms like so:</p><pre>&lt;!--Transforms will be applied in the order listed--&gt;<br>&lt;GET id=&quot;trackerdata&quot; url=&quot;resources/planedata.json&quot;&gt;<br>   &lt;!--First we add a duration field to determine the length of the flight--&gt;<br>   &lt;CALC target=&quot;duration&quot; operation=&quot;eval&quot; source=&quot;{data.lastSeen} - {data.firstSeen}&quot;/&gt;<br>   &lt;!--Then we use the previously created field to get a min, max, total and average--&gt;<br>   &lt;CALC target=&quot;maxDuration&quot; operation=&quot;max&quot; source=&quot;duration&quot;/&gt;<br>   &lt;CALC target=&quot;minDuration&quot; operation=&quot;min&quot; source=&quot;duration&quot;/&gt;<br>   &lt;CALC target=&quot;avgDuration&quot; operation=&quot;avg&quot; source=&quot;duration&quot;/&gt;<br>   &lt;CALC target=&quot;totalDuration&quot; operation=&quot;sum&quot; source=&quot;duration&quot;/&gt;<br>&lt;/GET&gt;</pre><p>Next, we want a SUBQUERY transform after the CALC’s to get the name and location of each airport:</p><pre>&lt;GET id=&quot;trackerdata&quot; ...&gt;<br>...<br>     &lt;!--The subquery waits for and inserts the returned call into the target from the api--&gt;<br>     &lt;SUBQUERY target=&quot;departuredata&quot;&gt;<br>           &lt;!--estDepartureAirport will be replaced from each data row iterated through--&gt;<br>           &lt;GET url=&quot;https://aircharterguide-api.tuvoli.com/api/v1/airport/details?airportCode={estDepartureAirport}&quot;&gt;<br>                &lt;!--The api expects a header of the following to execute--&gt;<br>                &lt;HEADER key=&quot;Content-Type&quot; value=&quot;application/json; charset=utf-8&quot;/&gt;<br>           &lt;/GET&gt;<br>     &lt;/SUBQUERY&gt;<br>     &lt;SUBQUERY target=&quot;arrivaldata&quot;&gt;<br>           &lt;!--We make a second call to get the arrival airport information--&gt;<br>           &lt;GET url=&quot;https://aircharterguide-api.tuvoli.com/api/v1/airport/details?airportCode={estArrivalAirport}&quot;&gt;<br>                 &lt;HEADER key=&quot;Content-Type&quot; value=&quot;application/json; charset=utf-8&quot;/&gt;<br>           &lt;/GET&gt;<br>     &lt;/SUBQUERY&gt;<br>&lt;/GET&gt;</pre><p>This call will insert a sub element of its return body into the data that can be bound to. Finally, we do more CALC transforms to add our extra data based on these calls:</p><pre>&lt;GET id=&quot;trackerdata&quot; ...&gt;<br>   ...<br>     &lt;!--We do a calculation based on the subquery data for each row--&gt;<br>     &lt;!--By using multiple dot notation, we can traverse down the tree of data elements to access deeper elements--&gt;<br>     &lt;CALC target=&quot;distance&quot; operation=&quot;eval&quot; source=&quot;round(distance({data.departuredata.Latitude}, {data.departuredata.Longitude}, {data.arrivaldata.Latitude}, {data.arrivaldata.Longitude})/1000,2)&quot;/&gt;<br>     &lt;!--Like the above step, we use calcs to get a min, max, avg, and total distance--&gt;<br>     &lt;CALC target=&quot;maxDistance&quot; operation=&quot;max&quot; source=&quot;distance&quot;/&gt;<br>     &lt;CALC target=&quot;minDistance&quot; operation=&quot;min&quot; source=&quot;distance&quot;/&gt;<br>     &lt;CALC target=&quot;avgDistance&quot; operation=&quot;avg&quot; source=&quot;distance&quot;/&gt;<br>     &lt;CALC target=&quot;totalDistance&quot; operation=&quot;sum&quot; source=&quot;distance&quot;/&gt;<br>&lt;/GET&gt;</pre><h3>Displaying and Manipulating Databindings</h3><h4>Displaying Jet Information From LIST Selections</h4><p>With all of this data added, we need to display it in the UI in a way that makes sense to the user. We have already gone through small examples of this when we wired the datasource to the flight list, displaying epoch data as a timestamp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xeufq8IRLGD90kjGSUoZKg.png" /><figcaption>The bound data and image for the seletced jet</figcaption></figure><p>Lets start with the easiest example which is the selected celebs name and occupation. We simply replace the placeholder text with bindings from the id=”userselect” LIST’s data:</p><pre>&lt;TXT value=&quot;Name:&quot; .../&gt;<br>&lt;TXT value=&quot;{userselect.data.firstName} {userselect.data.lastName}&quot; .../&gt;<br>&lt;TXT value=&quot;Occupation:&quot; .../&gt;<br>&lt;TXT value=&quot;{userselect.data.occupation}&quot; .../&gt;</pre><p>Next, we will do the same with the id=”taildata” LIST portion, allowing the selected list element to subset its own data:</p><pre>&lt;ROW ...&gt;<br>     &lt;ROW id=&quot;boxheight&quot; ...&gt;<br>          &lt;SBOX ...&gt;<br>               &lt;TXT value=&quot;Price&quot; .../&gt;<br>               &lt;TXT value=&quot;=number({taildata.data.MSRP},true,true)&quot; .../&gt;<br>               &lt;TXT value=&quot;Cost/Hr:&quot; .../&gt;<br>               &lt;TXT value=&quot;=number({taildata.data.hourlyTotal},true,true)&quot; .../&gt;<br>               &lt;TXT value=&quot;Fuel:&quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.fuelBurnPerHour} gal/hr&quot; .../&gt;<br>               &lt;TXT value=&quot;Yeary Additional:&quot; .../&gt;<br>               &lt;TXT value=&quot;=number({taildata.data.yearlyOperating},true,true)&quot; .../&gt;<br>          &lt;/SBOX&gt;<br>          &lt;SBOX ...&gt;<br>               &lt;TXT value=&quot;Manufacturer:&quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.manufacturerName}&quot; .../&gt;<br>               &lt;TXT value=&quot;Built: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.built}&quot; .../&gt;<br>               &lt;TXT value=&quot;Country: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.country}&quot; .../&gt;<br>               &lt;TXT value=&quot;Owner: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.owner}&quot; .../&gt;<br>          &lt;/SBOX&gt;<br>          &lt;SBOX ...&gt;<br>               &lt;TXT value=&quot;Model: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.model}&quot; .../&gt;<br>               &lt;TXT value=&quot;Engines: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.engines}&quot; .../&gt;<br>               &lt;TXT value=&quot;Class ICAO: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.icaoAircraftClass}&quot; .../&gt;<br>               &lt;TXT value=&quot;Type Code: &quot; .../&gt;<br>               &lt;TXT value=&quot;{taildata.data.typeCode}&quot; .../&gt;<br>         &lt;/SBOX&gt;<br>     &lt;/ROW&gt;<br>     &lt;BOX .../&gt;<br>     &lt;IMG url=&quot;={taildata.data.aircraftImgURL}&quot; .../&gt;<br>&lt;/ROW&gt;</pre><h4>Preforming Calculations on Selected Data</h4><p>Next, lets look at creating the lower section bindings where we display the recent flight stats and 20day flight stats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6hOIH4AydDp3p7tSnaoOw.png" /><figcaption>The bound manipulated data from subqueries and transforms</figcaption></figure><p>Starting with the recent flight stats, we replace the placeholders with data from the id=”planelist” LIST data much like we did above, this way we are shown only the selected flights data:</p><pre>&lt;SCROLL&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TXT value=&quot;Departure Airport:&quot; .../&gt;<br>          &lt;TXT value=&quot;{planelist.data.departuredata.AirportName}&quot; .../&gt;<br>          &lt;BOX .../&gt;<br>          &lt;TXT value=&quot;Arrival Airport:&quot; .../&gt;<br>          &lt;TXT value=&quot;={planelist.data.arrivaldata.AirportName} ?? TBD&quot; .../&gt;<br>      &lt;/BOX&gt;<br>      &lt;ROW&gt;<br>           &lt;BOX ...&gt;<br>                &lt;TXT value=&quot;Distance Flown:&quot; color=&quot;{stcol}&quot;/&gt;<br>                &lt;ROW ...&gt;<br>                     &lt;TXT value=&quot;{planelist.data.distance} km&quot; .../&gt;<br>       ...</pre><p>Now, we notice we have multiple values that are not displayable as their raw data such as distance. To drive this, we will do the calculations in VAR’s, then bind the fields to these VARs:</p><pre>                    &lt;VAR id=&quot;avgDifferenceDistanceCalc&quot; value=&quot;=round({planelist.data.distance} - {planelist.data.avgDistance},0)&quot;/&gt;<br>                    &lt;VAR id=&quot;roundedDifferenceDistanceCalc&quot; value=&quot;=round({planelist.data.avgDistance},2)&quot;/&gt;<br>                    &lt;TXT value=&quot;{roundedDifferenceDistanceCalc} km&quot; .../&gt;<br>                    &lt;TXT value=&quot;{avgDifferenceDistanceCalc} km&quot; ... /&gt;<br>               &lt;/COL&gt;<br>          &lt;ICON icon=&quot;trending_down&quot; .../&gt;<br>     &lt;/ROW&gt;<br>&lt;/SCROLL&gt;</pre><p>Next, we can drive the individual UI based on these VAR calculations:</p><pre>     &lt;TXT value=&quot;{avgDifferenceDistanceCalc} km&quot; color=&quot;={avgDifferenceFuelCalc} &amp;lt; 0 ? &#39;red&#39; : &#39;green&#39;&quot; .../&gt;<br>&lt;/COL&gt;<br>&lt;ICON icon=&quot;trending_down&quot; visible=&quot;={avgDifferenceDistanceCalc} &amp;lt; 0 ? true : false&quot; .../&gt;<br>&lt;ICON icon=&quot;trending_up&quot; visible=&quot;={avgDifferenceDistanceCalc} &amp;gt; 0 ? true : false&quot; color=&quot;green&quot; size=&quot;30&quot;/&gt;</pre><p>Then we simply repeat a very similar calculation set for the remainder of this portion of the UI:</p><pre>&lt;ROW&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TXT value=&quot;Flight Cost:&quot; .../&gt;<br>          &lt;VAR id=&quot;avgCostCalc&quot; value=&quot;={planelist.data.avgDuration}/60/60 * {taildata.data.hourlyTotal}&quot;/&gt;<br>          &lt;VAR id=&quot;avgDifferenceCostCalc&quot; value=&quot;={flightCostCalc} - {avgCostCalc}&quot;/&gt;<br>          &lt;VAR id=&quot;flightCostCalc&quot; value=&quot;={durationCalc} * {taildata.data.hourlyTotal}&quot;/&gt;<br>          &lt;ROW ...&gt;<br>               &lt;TXT value=&quot;=number({flightCostCalc}, true, true)&quot; .../&gt;<br>               &lt;ROW ...&gt;<br>                    &lt;COL ...&gt;<br>                         &lt;TXT value=&quot;=number({avgCostCalc}, true, true)&quot; .../&gt;<br>                         &lt;TXT value=&quot;=number({avgDifferenceCostCalc}, true, true)&quot; color=&quot;={avgDifferenceCostCalc} &amp;lt; 0 ? &#39;red&#39; : &#39;green&#39;&quot; .../&gt;<br>                    &lt;/COL&gt;<br>                    &lt;ICON icon=&quot;trending_down&quot; visible=&quot;={avgDifferenceCostCalc} &amp;lt; 0 ? true : false&quot; .../&gt;<br>                    &lt;ICON icon=&quot;trending_up&quot; visible=&quot;={avgDifferenceCostCalc} &amp;gt; 0 ? true : false&quot; .../&gt;<br>               &lt;/ROW&gt;<br>           &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TXT value=&quot;Carbon Consumed:&quot; .../&gt;<br>          &lt;VAR id=&quot;carbonCalc&quot; value=&quot;=3.102572 * {fuelCalc} * 3.16&quot;/&gt;<br>          &lt;VAR id=&quot;carbonCalcRounded&quot; value=&quot;=round({carbonCalc}, 0)&quot;/&gt;<br>          &lt;VAR id=&quot;avgCarbonCalc&quot; value=&quot;=round(3.102572 * {avgFuelCalc} * 3.16,0)&quot;/&gt;<br>          &lt;VAR id=&quot;avgCarbonDifference&quot; value=&quot;={carbonCalcRounded} - {avgCarbonCalc}&quot;/&gt;<br>          &lt;ROW ...&gt;<br>               &lt;TXT value=&quot;{carbonCalcRounded} kg&quot; .../&gt;<br>               &lt;ROW ...&gt;<br>                    &lt;COL ...&gt;<br>                         &lt;TXT value=&quot;{avgCarbonCalc} kg&quot; .../&gt;<br>                         &lt;TXT value=&quot;{avgCarbonDifference} kg&quot; color=&quot;={avgCarbonDifference} &amp;lt; 0 ? &#39;red&#39; : &#39;green&#39;&quot; .../&gt;<br>                    &lt;/COL&gt;<br>                    &lt;ICON icon=&quot;trending_down&quot; visible=&quot;={avgCarbonDifference} &amp;lt; 0 ? true : false&quot; .../&gt;<br>                    &lt;ICON icon=&quot;trending_up&quot; visible=&quot;={avgCarbonDifference} &amp;gt; 0 ? true : false&quot; .../&gt;<br>               &lt;/ROW&gt;<br>          &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>&lt;/ROW&gt;</pre><h4>Binding to The Total Statistics</h4><p>This part is very similar to the above, rather than binding to the LIST’s data, we bind directly to the datasource where we did the transforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IOii3Yf8xAy7SvD-LIcq5A.png" /><figcaption>Data displayed from inner template calculations</figcaption></figure><pre><br> &lt;ROW&gt;<br>     &lt;BOX ...&gt;<br>          &lt;VAR id=&quot;totalDurationHours&quot; value=&quot;=round({trackerdata.data.totalDuration}/60/60,0)&quot;/&gt;<br>          &lt;VAR id=&quot;totalDurationMinutes&quot; value=&quot;=floor({trackerdata.data.totalDuration}/60%60)&quot;/&gt;<br>          &lt;VAR id=&quot;minDurationHours&quot; value=&quot;=round({trackerdata.data.minDuration}/60/60,0)&quot;/&gt;<br>          &lt;VAR id=&quot;minDurationMinutes&quot; value=&quot;=floor({trackerdata.data.minDuration}/60%60)&quot;/&gt;<br>          &lt;VAR id=&quot;maxDurationHours&quot; value=&quot;=round({trackerdata.data.maxDuration}/60/60,0)&quot;/&gt;<br>          &lt;VAR id=&quot;maxDurationMinutes&quot; value=&quot;=floor({trackerdata.data.maxDuration}/60%60)&quot;/&gt;<br>          &lt;TEXT value=&quot;Flight Duration&quot; .../&gt;<br>          &lt;ROW ...&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;min&quot; .../&gt;<br>                    &lt;TXT value=&quot;{minDurationHours}h {minDurationMinutes}m&quot;.../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;total&quot; .../&gt;<br>                    &lt;TXT value=&quot;{totalDurationHours}h {totalDurationMinutes}m&quot; .../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;max&quot; .../&gt;<br>                    &lt;TXT value=&quot;{maxDurationHours}h {maxDurationMinutes}m&quot; .../&gt;<br>               &lt;/COL&gt;<br>          &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>      ...</pre><p>And again repeating this pattern for the others:</p><pre>     ...<br>     &lt;BOX ...&gt;<br>          &lt;VAR id=&quot;roundedTotalDistance&quot; value=&quot;=round({trackerdata.data.totalDistance},0)&quot;/&gt;<br>          &lt;VAR id=&quot;roundedMinDistance&quot; value=&quot;=round({trackerdata.data.minDistance},0)&quot;/&gt;<br>          &lt;VAR id=&quot;roundedMaxDistance&quot; value=&quot;=round({trackerdata.data.maxDistance},0)&quot;/&gt;<br>          &lt;TEXT value=&quot;Distance Flown&quot; .../&gt;<br>          &lt;ROW ...&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;min&quot; .../&gt;<br>                    &lt;TXT value=&quot;{roundedMinDistance} km&quot; .../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;total&quot; .../&gt;<br>                    &lt;TXT value=&quot;{roundedTotalDistance} km&quot; .../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;max&quot; .../&gt;<br>                    &lt;TXT value=&quot;{roundedMaxDistance} km&quot; .../&gt;<br>               &lt;/COL&gt;<br>          &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>&lt;/ROW&gt;<br>&lt;ROW&gt;<br>     &lt;BOX ...&gt;<br>          &lt;VAR id=&quot;totalFuelCalc&quot; value=&quot;=round({trackerdata.data.totalDuration}/60/60 * {taildata.data.fuelBurnPerHour}, 0)&quot;/&gt;<br>          &lt;VAR id=&quot;minFuelCalc&quot; value=&quot;=round({trackerdata.data.minDuration}/60/60 * {taildata.data.fuelBurnPerHour}, 0)&quot;/&gt;<br>          &lt;VAR id=&quot;maxFuelCalc&quot; value=&quot;=round({trackerdata.data.maxDuration}/60/60 * {taildata.data.fuelBurnPerHour}, 0)&quot;/&gt;<br>          &lt;TEXT value=&quot;Fuel in Flight&quot; .../&gt;<br>          &lt;ROW ...&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;min&quot; .../&gt;<br>                    &lt;TXT value=&quot;{minFuelCalc} gal&quot; .../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;total&quot; .../&gt;<br>                    &lt;TXT value=&quot;{totalFuelCalc} gal&quot; .../&gt;<br>               &lt;/COL&gt;<br>               &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;max&quot; .../&gt;<br>                    &lt;TXT value=&quot;{maxFuelCalc} gal&quot; .../&gt;<br>               &lt;/COL&gt;<br>          &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>     &lt;BOX ...&gt;<br>           &lt;VAR id=&quot;totalCostCalc&quot; value=&quot;={trackerdata.data.totalDuration}/60/60 * {taildata.data.hourlyTotal}&quot;/&gt;<br>           &lt;VAR id=&quot;minCostCalc&quot; value=&quot;={trackerdata.data.minDuration}/60/60 * {taildata.data.hourlyTotal}&quot;/&gt;<br>           &lt;VAR id=&quot;maxCostCalc&quot; value=&quot;={trackerdata.data.maxDuration}/60/60 * {taildata.data.hourlyTotal}&quot;/&gt;<br>           &lt;TEXT value=&quot;Flight Cost&quot; .../&gt;<br>           &lt;ROW ...&gt;<br>                &lt;COL ...&gt;<br>                     &lt;TXT value=&quot;min&quot; .../&gt;<br>                     &lt;TXT value=&quot;=number({minCostCalc}, true, true)&quot; .../&gt;<br>                &lt;/COL&gt;<br>                &lt;COL ...&gt;<br>                     &lt;TXT value=&quot;total&quot; .../&gt;<br>                     &lt;TXT value=&quot;=number({totalCostCalc}, true, true)&quot; .../&gt;<br>                &lt;/COL&gt;<br>                &lt;COL ...&gt;<br>                    &lt;TXT value=&quot;max&quot; .../&gt;<br>                    &lt;TXT value=&quot;=number({maxCostCalc}, true, true)&quot; .../&gt;<br>                &lt;/COL&gt;<br>           &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>&lt;/ROW&gt;</pre><h3>Creating a View From Data Widgets</h3><h4>Connecting Chart Data</h4><p>Our second last item we need to complete is the chart data. This, like MAP and LIST, is as simple as assigning data to the chart and adding a couple bindings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0BLHW3K9GLR1jiveHxtfw.png" /><figcaption>The 3 types of charts displaying data</figcaption></figure><p>For all of our charts, we will add a datasource with subsets of DATA deriving from the GET widget call, which we will transform to our liking:</p><pre>&lt;DATA id=&quot;chartdata1&quot; value=&quot;{trackerdata.data}&quot;&gt;<br>     &lt;CALC target=&quot;departureDayOfWeek&quot; operation=&quot;eval&quot; source=&quot;toDate(&#39;{data.firstSeen}000&#39;, &#39;&#39;, &#39;EEEE&#39;)&quot;/&gt;<br>     &lt;CALC target=&quot;arrivalDayOfWeek&quot; operation=&quot;eval&quot; source=&quot;toDate(&#39;{data.lastSeen}000&#39;, &#39;&#39;, &#39;EEEE&#39;)&quot;/&gt;<br>     &lt;CALC target=&quot;departureDayCount&quot; source=&quot;departureDayOfWeek&quot; operation=&quot;total&quot;/&gt;<br>     &lt;CALC target=&quot;arrivalDayCount&quot; source=&quot;arrivalDayOfWeek&quot; operation=&quot;total&quot;/&gt;<br>     &lt;CALC target=&quot;duration&quot; operation=&quot;eval&quot; source=&quot;({data.lastSeen} - {data.firstSeen})/60/60&quot;/&gt;<br>     &lt;CALC target=&quot;departureDate&quot; operation=&quot;eval&quot; source=&quot;toDate(&#39;{data.firstSeen}000&#39;, &#39;&#39;, &#39;dd/MM h:mm&#39;)&quot;/&gt;<br>     &lt;CALC target=&quot;departureTimeOfDay&quot; operation=&quot;eval&quot; source=&quot;toDate(&#39;{data.firstSeen}000&#39;, &#39;&#39;, &#39;HH&#39;)&quot;/&gt;<br>     &lt;CALC target=&quot;arrivalTimeOfDay&quot; operation=&quot;eval&quot; source=&quot;toDate(&#39;{data.lastSeen}000&#39;, &#39;&#39;, &#39;HH&#39;)&quot;/&gt;<br>     &lt;CALC target=&quot;departureTimeCount&quot; source=&quot;departureTimeOfDay&quot; operation=&quot;total&quot;/&gt;<br>     &lt;CALC target=&quot;arrivalTimeCount&quot; source=&quot;arrivalTimeOfDay&quot; operation=&quot;total&quot;/&gt;<br>     &lt;DATA id=&quot;distinctDepartureTime&quot;&gt;<br>          &lt;DISTINCT field=&quot;departureTimeOfDay&quot;/&gt;<br>     &lt;/DATA&gt;<br>     &lt;DATA id=&quot;distinctArrivalTime&quot;&gt;<br>          &lt;DISTINCT field=&quot;arrivalTimeOfDay&quot;/&gt;<br>     &lt;/DATA&gt;<br>     &lt;DATA id=&quot;distinctDepartureDay&quot;&gt;<br>          &lt;DISTINCT field=&quot;departureDayOfWeek&quot;/&gt;<br>     &lt;/DATA&gt;<br>     &lt;DATA id=&quot;distinctArrivalDay&quot;&gt;<br>          &lt;DISTINCT field=&quot;arrivalDayOfWeek&quot;/&gt;<br>     &lt;/DATA&gt;<br>&lt;/DATA&gt;</pre><p>Next, we will connect this data to our line chart:</p><pre>&lt;CHART ...&gt;<br>     &lt;XAXIS type=&quot;category&quot; title=&quot;Date&quot; /&gt;<br>     &lt;YAXIS type=&quot;numeric&quot; title=&quot;Duration (h)&quot; /&gt;<br>     &lt;SERIES name=&quot;Duration per Flight&quot; type=&quot;line&quot; data=&quot;chartdata&quot; x=&quot;{data.departureDate}&quot; y=&quot;{data.duration}&quot; color=&quot;lightblue&quot; /&gt;<br>&lt;/CHART&gt;</pre><p>Our bar chart, which we also need an additional hardcoded datasource to display 0–24 on the x axis:</p><pre>&lt;GET id=&quot;timehourdata&quot; url=&quot;resources/timedata.xml&quot; root=&quot;ROWS.ROW&quot;/&gt;<br>&lt;CHART&gt;<br>     &lt;XAXIS type=&quot;category&quot; title=&quot;Hour&quot; /&gt;<br>     &lt;YAXIS type=&quot;numeric&quot; title=&quot;Flights&quot; /&gt;<br>     &lt;SERIES name=&quot;Hour&quot; type=&quot;bar&quot; data=&quot;timehourdata&quot; x=&quot;{data.timeOfDay}&quot; y=&quot;0&quot; color=&quot;lightblue&quot; /&gt;<br>     &lt;SERIES name=&quot;Departure Hour&quot; type=&quot;bar&quot; data=&quot;distinctDepartureTime&quot; x=&quot;{data.departureTimeOfDay}&quot; y=&quot;{data.departureTimeCount}&quot; color=&quot;lightblue&quot; /&gt;<br>     &lt;SERIES name=&quot;Arrival Hour&quot; type=&quot;bar&quot; data=&quot;distinctArrivalTime&quot; x=&quot;{data.arrivalTimeOfDay}&quot; y=&quot;{data.arrivalTimeCount}&quot; color=&quot;purple&quot; /&gt;<br>&lt;/CHART&gt;</pre><p>and our two pie charts:</p><pre>&lt;CHART ...&gt;<br>     &lt;XAXIS  title=&quot;Departures&quot; /&gt;<br>     &lt;SERIES name=&quot;Departure Day&quot; data=&quot;distinctDepartureDay&quot; x=&quot;{data.departureDayOfWeek}&quot; label=&quot;{data.departureDayOfWeek}&quot; y=&quot;{data.departureCount}&quot; /&gt;        <br>&lt;/CHART&gt;<br>&lt;CHART ...&gt;<br>     &lt;XAXIS  title=&quot;Arrivals&quot; /&gt;<br>     &lt;SERIES name=&quot;Arrival Day&quot; data=&quot;distinctArrivalDay&quot; x=&quot;{data.arrivalDayOfWeek}&quot; label=&quot;{data.arrivalDayOfWeek}&quot; y=&quot;{data.departureCount}&quot; color=&quot;purple&quot;/&gt;       <br>&lt;/CHART&gt;</pre><h4>Connecting Map Data</h4><p>Finally, to connect our map to data we want to display 4 specific markers; The selected departure location, the selected arrival location, all arrival locations, and all departure locations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UN6az1bi7Ce_kKkryY0NMg.png" /><figcaption>A map displaying multiple location markers</figcaption></figure><p>Because this data already exists, we simply add the new markers and bindings to the map:</p><pre>&lt;MAP ...&gt;<br>     &lt;MARKER data=&quot;trackerdata&quot; latitude=&quot;{data.departuredata.Latitude}&quot; longitude=&quot;{data.departuredata.Longitude}&quot;&gt;<br>          &lt;ICON icon=&quot;location_on_outlined&quot; .../&gt;<br>     &lt;/MARKER&gt;<br>     &lt;MARKER data=&quot;trackerdata&quot; latitude=&quot;{data.arrivaldata.Latitude}&quot; longitude=&quot;{data.arrivaldata.Longitude}&quot;&gt;<br>          &lt;ICON icon=&quot;location_on_outlined&quot; color=&quot;black&quot;/&gt;<br>     &lt;/MARKER&gt;<br>     &lt;MARKER latitude=&quot;{planelist.data.departuredata.Latitude}&quot; longitude=&quot;{planelist.data.departuredata.Longitude}&quot;&gt;<br>          &lt;ICON icon=&quot;flight_takeoff&quot; color=&quot;purple&quot; size=&quot;40&quot;/&gt;<br>     &lt;/MARKER&gt;<br>     &lt;MARKER latitude=&quot;{planelist.data.arrivaldata.Latitude}&quot; longitude=&quot;{planelist.data.arrivaldata.Longitude}&quot;&gt;<br>          &lt;ICON icon=&quot;flight_land&quot; color=&quot;purple&quot; size=&quot;40&quot;/&gt;<br>     &lt;/MARKER&gt;<br>&lt;/MAP&gt;</pre><p>And there you have it, a selectable list and repeated list of data both displayed on interaction with the MAP.</p><h3>Conclusion</h3><p>In 380 Lines we have created the following, fully functional and robustly feature packed dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MDZN1EwjVLyFF-wCkZRSQ.png" /><figcaption>The completed dashboard at the end of Part 2</figcaption></figure><p>As you can see, a lot of this heavy lifting can be done in the backend calls, which would <strong>free up approximately 80 lines of space, reducing our whole template to 300 lines! </strong>Due to our self-imposed constraints for this tutorial, we were able to leverage the widgets within FML to manipulate the data as needed!</p><p>With that we have completed the dashboard from start to finish! <strong>With 380 lines completed, you can see FML is simple to write and powerful.</strong> Remember, for any assistance, suggestions, or feedback:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ"><strong>Chat with us on Our Discord.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>Visit The Wiki.</strong></a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1"><strong>Subscribe to Our YouTube Channel.</strong></a></li><li><a href="https://medium.com/@TheOlajos"><strong>Follow me on Medium.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit, Contribute, and Star FML’s Github Repo.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language-VS-Code-Extension"><strong>Visit, Contribute, and Star FML’s VSCode Extension Github Repo.</strong></a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65addf866b21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Celebrity Jet Tracking Dashboard in 380  lines with Flutter Markup Language — Part 1: UI…]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/build-a-celebrity-jet-tracking-dashboard-in-380-lines-with-flutter-markup-language-part-1-ui-c114806d87b4?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c114806d87b4</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <category><![CDATA[dashboard]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 18:45:44 GMT</pubDate>
            <atom:updated>2023-09-20T13:21:53.971Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a Celebrity Jet Tracking Dashboard in 380 lines with Flutter Markup Language — Part 1: UI and Overview</h3><h3>Part 1: Overview, Layout and UI</h3><h4>In this article we go over Part 1 of 2 of how to build a fully functional celebrity jet tracker in under 400 Lines using Flutter Markup Language, OpenSky and a few other REST API’s.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RT5REeNCXcq5VtJNv4XA9w.png" /></figure><p>To build the dashboard, we will be using <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases/tag/V2.0.1"><strong>Flutter Markup Language Version 2.0.1</strong></a>, which allows us to create an application from a single source that will run seamlessly on any platform!</p><p>Let’s track Elon, Trump, and a few others! A full list of tail and ICAO numbers, as well as the data needed to power the dashboard will be linked in Part 2. <a href="https://jet.fml.dev/">You can check out a constantly updated version of the dashboard at jet.fml.dev</a>!</p><blockquote>note: all jet tracking is being done using publicly available data and tail numbers.</blockquote><h3>Features and Overview</h3><p>We are going to build the following dashboard in Flutter Markup Language:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MDZN1EwjVLyFF-wCkZRSQ.png" /><figcaption>The completed jet tracking dashboard</figcaption></figure><h4>Build Time and Expectations:</h4><ul><li>Run on macOS, Windows desktop, Linux, web and mobile web browsers, and as an installed application on iOS and Android from a single template/source.</li><li>Less than 400 lines of markup.</li><li>Responsive with live data.</li><li>No custom API required.</li></ul><h4>Dashboard Features:</h4><ul><li>Select from a list of users and their jets.</li><li>Display a list of flights from the selected jet using open API’s.</li><li>Select specific flights to display the data on that flight.</li><li>Aggregate, transform, and display flight data available from multiple open API’s to create new data and visualizations.</li><li>Display relevant data in a functional UI.</li><li>Chart relevant data for visual reference.</li><li>Display past and current locations on a map.</li><li>Display location and flight information on each marker on the map.</li><li>All data is up to date and live.</li></ul><h3>Flutter Markup Language Prerequisites</h3><p>The quickest, minimum requirements to create a fully functional FML app without any file server knowledge is:</p><ul><li>A copy of the <a href="https://fml.dev/downloads/windows.zip">FML.exe for Windows</a>.</li><li>Any text editor.</li></ul><p>If you choose to do this, <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Quick-Start-Guide">you can see how to connect to a locally hosted template here, under <strong><em>Offline Applications.</em></strong></a><strong><em> </em></strong>The application will still be able to make network calls, but will not be accessible outside of the installed host device.</p><p><strong>Our recommended setup to run on all platforms is:</strong></p><ul><li><strong>A File Server hosting a copy of </strong><a href="https://fml.dev/downloads/server.zip"><strong>FML’s server.zip</strong></a><strong>.</strong> You can check out the guide to setting up an app using <a href="https://medium.com/@TheOlajos/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525">XAMPP in under 10 minutes</a> or using <a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb">NGROK in under 10 minutes</a> if you need a starting point.</li><li><strong>A text or code editor.</strong> We recommend <a href="https://marketplace.visualstudio.com/items?itemName=appdaddy-software-solutions-inc.flutter-markup-language">VSCode with the Flutter Markup Language Extension.</a></li><li><strong>The installed applications for each platform you would like to test on. </strong>FML will run on all platforms out of the box, but we recommend testing on each to optimize your UI for each size. Y<a href="https://play.google.com/store/apps/details?id=co.appdaddy.fml&amp;hl=en_CA&amp;gl=US">ou can find these on the play store</a>, <a href="https://apps.apple.com/us/app/flutter-markup-language/id1629916140">iOS store</a>, <a href="https://fml.dev/downloads/">or our downloads folder at fml.dev</a>.</li></ul><p>Once you have the environment up and running,<strong> </strong><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>you can open a copy of the wiki for reference </strong></a>and begin building the dashboard!</p><h3>Dashboard Layout</h3><p>To start, lets create the overall layout of the dashboard without data. <strong>We will be doing this part in under 300 lines of FML.</strong> We can see its main up of a main upper header, and 3 lower sections which all contain their own subsections.</p><p>Starting with the outer sections, we will use the decoration border=”all” and radius=”10” to produce rounded boxes, with a margin=”5” to give the boxes some space:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xI2AEHvN1wS3S9_qrUKbAA.png" /><figcaption>We see the basic layout structure from the wireframe</figcaption></figure><pre>&lt;!--We use row as our starting layout--&gt;<br>&lt;FML layout=&quot;row&quot;&gt;<br>  &lt;!--The header spans the upper section, this can also be a BOX--&gt;<br>    &lt;HEADER border=&quot;all&quot;&gt;<br>    &lt;/HEADER&gt;<br>  &lt;!--We choose to use two columns in an FML layout=&quot;row&quot; to display the left and right halves--&gt;<br>    &lt;COL&gt;<br>        &lt;!--Two boxes divide the halve into quadrants--&gt;<br>          &lt;BOX border=&quot;all&quot; radius=&quot;10&quot; margin=&quot;5&quot;&gt;<br>          &lt;/BOX&gt;<br>          &lt;BOX border=&quot;all&quot; radius=&quot;10&quot; margin=&quot;5&quot;&gt;<br>          &lt;/BOX&gt;<br>     &lt;/COL&gt;<br>     &lt;COL&gt;<br>        &lt;!--A single box takes up the remaining space--&gt;<br>          &lt;BOX border=&quot;all&quot; radius=&quot;10&quot; margin=&quot;5&quot;&gt;<br>          &lt;/BOX&gt;<br>     &lt;/COL&gt;<br>&lt;/FML&gt;</pre><p>Now lets isolate the quadrant sizing. Starting with the overall layout, we see that the left half takes up 1/3 and the right takes up 2/3, which is the same respectively for the topleft and bottomleft. For this we simply add a flex factor to the two boxes we want to take more space with flex=””:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTuGx5COV3vkYV57Tx9W-g.png" /><figcaption>We use flex=”” to assign a portion of the area</figcaption></figure><pre>&lt;HEADER border=&quot;all&quot;&gt;<br>&lt;/HEADER&gt;<br>&lt;COL&gt;<br>     &lt;!--Flex is 1 by default, so we do not need to specify a flex of 1--&gt;<br>     &lt;BOX ...&gt;<br>     &lt;/BOX&gt;<br>     &lt;!--We add flex of 2 to take up 2/3 vertically--&gt;<br>     &lt;BOX flex=&quot;2&quot; ...&gt;<br>     &lt;/BOX&gt;<br>&lt;/COL&gt;<br>&lt;!--We add flex of 2 to take up 2/3 horizontally--&gt;<br>&lt;COL flex=&quot;2&quot;&gt;<br>      &lt;BOX ...&gt;<br>      &lt;/BOX&gt;<br>&lt;/COL&gt;</pre><blockquote>note: ...is used for readability of the article based code blocks, readers should assume attributes and widgets added in previous steps are masked using ... if not shown.</blockquote><h4>Building the Header and User Selection.</h4><p>In the HEADER we see a title and an image, with a list at the end of the header. Adding the widgets as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKo4LWXY232FZBm3yIunDQ.png" /><figcaption>The basic layout for the header of the application</figcaption></figure><pre>&lt;!--The header takes a vertical alignment, and a layout type of row--&gt;<br>&lt;HEADER border=&quot;all&quot; valign=&quot;center&quot; layout=&quot;row&quot;&gt;<br>     &lt;!--Add an image with a margin for spacing, height, and the URL to the image either fully qualified or local--&gt;<br>     &lt;IMG url=&quot;resources/images/fml.png&quot; margin=&quot;20&quot; height=&quot;100&quot;/&gt;<br>     &lt;!--Text as the title with a style--&gt;<br>     &lt;TEXT value=&quot;FMLJet&quot; style=&quot;h2&quot;/&gt;<br>     &lt;!--A horizontal scrolling, reversed, list is created with draggability in web--&gt;<br>     &lt;LIST id=&quot;userselect&quot; reverse=&quot;true&quot; direction=&quot;horizontal&quot; draggable=&quot;true&quot; flex=&quot;1&quot;&gt;<br>          &lt;!--A dummy list item is created with a size as it has no contents--&gt;<br>          &lt;ITEM id=&quot;userlistitem&quot; width=&quot;100&quot; height=&quot;100&quot; color=&quot;blue&quot;/&gt;<br>     &lt;/LIST&gt;<br>&lt;/HEADER&gt;</pre><p>Now looking at the item, we want to add a radius, bordercolor, and an image child:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O82WfE-dCAjkeEi2obwDxA.png" /><figcaption>Creating a list item for the header</figcaption></figure><pre>&lt;!--List item inherits from box, and therefore has its decoration attributes--&gt;<br>&lt;!--Fixing the width and height ensures our list items are always the same size--&gt;<br>&lt;ITEM radius=&quot;50&quot; border=&quot;all&quot; borderwidth=&quot;3&quot; bordercolor=&quot;purple&quot; elevation=&quot;5&quot; shadowcolor=&quot;purple&quot; margin=&quot;8&quot; shadowx=&quot;0&quot; shadowy=&quot;0&quot;&gt;<br>    &lt;!--We add an image with a height of 100% of its parent, so the width of the image is not fitted--&gt;   <br>    &lt;IMG url=&quot;resources/images/doge.png&quot; height=&quot;100%&quot;/&gt;<br>&lt;/ITEM&gt;</pre><p>Now we want to add some responsiveness to ensure we can see when the item is selected vs. not selected, while also ensuring the first item is selected by default:</p><pre>&lt;!--We denote evals with &quot;=&quot; and return selected values based on the list items selected binding--&gt;<br>&lt;!--In this case, we want to make the item larger, and add a shadow when selected--&gt;<br>&lt;ITEM ... width=&quot;={this.selected} ? 100 : 70&quot; height=&quot;={this.selected} ? 100 : 70&quot; elevation=&quot;={this.selected} ? 5 : 0&quot; selected=&quot;={this.index} == 0&quot; bordercolor=&quot;={this.selected} ? &#39;#c300d0&#39; : &#39;grey&#39;&quot;&gt;<br>     &lt;!--{this. refers to a widgets self, otherwise an id can be given--&gt;<br>     &lt;IMG .../&gt;<br>&lt;/ITEM&gt;</pre><h4>Building The Upper Left Flight Selection List</h4><p>Next we can move on to the upper left quadrant with the same approach as the header. A TEXT widget and LIST is all that’s needed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4lLg96LBaP9QDbFX49GGVQ.png" /><figcaption>Creating a list and item for plane data</figcaption></figure><pre>&lt;COL&gt;<br>     &lt;BOX ...&gt;<br>          &lt;!--We add the title as a text widget--&gt;<br>          &lt;TXT value=&quot;20 Day Flights&quot; style=&quot;h5&quot; margin=&quot;10&quot;/&gt;<br>          &lt;!--A list as before with an ID for binding. The list is vertical and top to bottom scrolling by default--&gt;<br>          &lt;LIST id=&quot;planelist&quot; flex=&quot;1&quot;&gt;<br>               &lt;!--And an item with a bordercolor--&gt;<br>               &lt;ITEM border=&quot;all&quot; bordercolor=&quot;#c300d0&quot;/&gt;<br>          &lt;/LIST&gt;<br>     &lt;/BOX&gt;<br>     &lt;BOX .../&gt;<br>&lt;/COL&gt;</pre><p>The ITEM becomes slightly more complex with it’s layout, using the selectable logic from above to make the ITEM responsive:</p><pre>&lt;!--We implement the same selectable logic as above--&gt;<br>&lt;ITEM pad=&quot;8&quot; id=&quot;listitem&quot; layout=&quot;row&quot; halign=&quot;between&quot;  bordercolor=&quot;={this.selected} ? &#39;#c300d0&#39; : null&quot; color=&quot;={this.selected} ? &#39;#7b008322&#39; : &#39;black&#39;&quot;  border=&quot;all&quot; selected=&quot;={this.index} == 0&quot;&gt;<br>     &lt;ROW&gt;<br>          &lt;!--A non expanding SBOX allows the inner widgets to determine size, while laying out differently than the parent--&gt;<br>          &lt;SBOX expand=&quot;false&quot;&gt;<br>               &lt;!--We add our placeholder text--&gt;<br>               &lt;TXT value=&quot;DPTR&quot; style=&quot;h6&quot;/&gt;<br>               &lt;TXT value=&quot;h:mm dd/MM&quot;/&gt;<br>          &lt;/SBOX&gt;<br>          &lt;!--An icon widget from the material widget library--&gt;<br>          &lt;ICON icon=&quot;arrow_right&quot;/&gt;<br>          &lt;!--A repeat of the above layout with arrival values--&gt;<br>          &lt;SBOX expand=&quot;false&quot;&gt;<br>               &lt;TXT value=&quot;ARRV&quot; style=&quot;h6&quot;/&gt;<br>               &lt;TXT value=&quot;h:mm dd/MM&quot;/&gt;<br>          &lt;/SBOX&gt;<br>     &lt;/ROW&gt;<br>         &lt;!--A final placeholder for the flight status and duration--&gt;<br>     &lt;COL halign=&quot;end&quot; valign=&quot;center&quot;&gt;<br>          &lt;TXT value=&quot;Arrived&#39;&quot; color=&quot;green&quot;/&gt;<br>          &lt;TXT value=&quot;Duration: 1h 10m&quot;/&gt;<br>     &lt;/COL&gt;<br>&lt;/ITEM&gt;</pre><h4>Building The Lower Left Current and Total Flight Trends</h4><p>Now we can move on to the lower left quadrant. For this quadrant, we want to ensure each section is individually scrollable when the screen becomes to small. This section is going to take up the majority of the template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snZenWDaT7CeQDefPN40GA.png" /><figcaption>We see the expected layout and the coded layout for the bottomleft quadrant</figcaption></figure><p>Starting with its sub layout, we need to create two scrollable sections divided by boxes. The upper section to display selected flight statistics:</p><pre>&lt;BOX flex=&quot;2&quot; border=&quot;all&quot; radius=&quot;10&quot; margin=&quot;5&quot;&gt;<br>     &lt;BOX pad=&quot;8&quot; flex=&quot;5&quot;&gt;<br>          &lt;!--The first section is scrollable independant of text--&gt;<br>          &lt;TXT value=&quot;Recent Flight Statistics&quot; style=&quot;h5&quot; margin=&quot;0,10,10,10&quot;/&gt;<br>          &lt;SCROLL&gt;<br>               &lt;!--As usual, we divide the section up using our layout widgets--&gt;<br>               &lt;!--Due to the scroller being infinately high, the boxes will allow their children<br>                to size them in the scrollers direction rather than growing--&gt;<br>               &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>               &lt;/BOX&gt;<br>               &lt;ROW&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>               &lt;/ROW&gt;<br>               &lt;ROW&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>               &lt;/ROW&gt;<br>          &lt;/SCROLL&gt;<br>     &lt;/BOX&gt;<br><br>&lt;/BOX&gt;</pre><p>And the lower section to display total flight statistics:</p><pre>&lt;BOX border=&quot;all&quot; radius=&quot;10&quot; margin=&quot;5&quot;&gt;<br>...<br>     &lt;BOX pad=&quot;8&quot; flex=&quot;4&quot;&gt;<br>          &lt;TXT value=&quot;20 Day Flight Statistics&quot; style=&quot;h5&quot; margin=&quot;0,10,10,10&quot;/&gt;<br>          &lt;SCROLL&gt;<br>               &lt;!--A 4x4 display that can be given a hard sized in height of 120 to be seen--&gt;<br>               &lt;ROW&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>               &lt;/ROW&gt;<br>               &lt;ROW&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>                    &lt;BOX color=&quot;black&quot; pad=&quot;10&quot; margin=&quot;5&quot; radius=&quot;5&quot;&gt;<br>                    &lt;/BOX&gt;<br>              &lt;/ROW&gt;<br>         &lt;/SCROLL&gt;<br>      &lt;/BOX&gt;<br>&lt;/BOX&gt;</pre><p>Within these boxes, we only have three distinct blocks that we can use to repeat each element, first is the arrival and departure airport names:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0QwZExl3E-Vx3p3slNr2Q.png" /><figcaption>Creating the placeholders to match the wireframe for the airport name</figcaption></figure><pre>&lt;SCROLL&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TXT value=&quot;Departure Airport:&quot;/&gt;<br>          &lt;TXT value=&quot;DEPARTURE AIRPORT NAME&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>          &lt;!--An 11 high box with a margin will create a 1 high box (height - margin = decorationheight)--&gt;<br>          &lt;BOX height=&quot;11&quot; color=&quot;white&quot; margin=&quot;5&quot;/&gt;<br>          &lt;TXT value=&quot;Arrival Airport:&quot;/&gt;<br>          &lt;TXT value=&quot;ARRIVAL AIRPORT NAME&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>     &lt;/BOX&gt;<br>...</pre><p>Next, the trend for the current flight; replacing the text with the correct placeholder names:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ScjmbcaAs4U4JS37y2UdyA.png" /><figcaption>Creating the placeholders for the selected flight stats</figcaption></figure><pre>&lt;ROW&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TXT value=&quot;Distance Flown:&quot;/&gt;<br>          &lt;ROW valign=&quot;center&quot;&gt;<br>               &lt;TXT value=&quot;22 km&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>               &lt;ROW halign=&quot;end&quot;&gt;<br>                    &lt;COL halign=&quot;end&quot;&gt;<br>                         &lt;TXT value=&quot;234 km&quot; size=&quot;12&quot;/&gt;<br>                         &lt;TXT value=&quot;333 km&quot; size=&quot;12&quot; color=&quot;red&quot;/&gt;<br>                    &lt;/COL&gt;<br>                    &lt;ICON icon=&quot;trending_down&quot; color=&quot;red&quot; size=&quot;30&quot;/&gt;<br>               &lt;/ROW&gt;<br>          &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>...</pre><p>Finally, the trend for all flights, repeating the items in the same fashion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddAhaRpB34YftAGofAJLZA.png" /><figcaption>Creating the placeholders for the total flight stats</figcaption></figure><pre>&lt;ROW&gt;<br>     &lt;BOX ...&gt;<br>          &lt;TEXT value=&quot;Flight Duration&quot; margin=&quot;0,0,10,0&quot;/&gt;<br>          &lt;ROW halign=&quot;between&quot;&gt;<br>              &lt;COL valign=&quot;between&quot; halign=&quot;center&quot;&gt;<br>                   &lt;TXT value=&quot;min&quot; size=&quot;12&quot;/&gt;<br>                   &lt;TXT value=&quot;0h 20m&quot; color=&quot;#8B8000&quot; style=&quot;h5&quot;/&gt;<br>              &lt;/COL&gt;<br>              &lt;COL valign=&quot;between&quot; halign=&quot;center&quot;&gt;<br>                   &lt;TXT value=&quot;total&quot; size=&quot;12&quot;/&gt;<br>                   &lt;TXT value=&quot;5h 4m&quot; style=&quot;h4&quot; bold=&quot;true&quot;/&gt;<br>              &lt;/COL&gt;<br>              &lt;COL valign=&quot;between&quot; halign=&quot;center&quot;&gt;<br>                   &lt;TXT value=&quot;max&quot; size=&quot;12&quot;/&gt;<br>                   &lt;TXT value=&quot;6h 3m&quot; color=&quot;#027148&quot; style=&quot;h5&quot;/&gt;<br>               &lt;/COL&gt;<br>         &lt;/ROW&gt;<br>     &lt;/BOX&gt;<br>...</pre><h4>Building The Top Right Jet Selection List and Plane Info Panel</h4><p>Lastly, we move to the right. The top right quadrant contains a simple horizontal list like we built for the users, with info text to its left similar to the bottom left trend panes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dztvdhzJLNjVuQzhOe7p5Q.png" /><figcaption>We see the list item for the jets</figcaption></figure><pre>&lt;SBOX border=&quot;all&quot; radius=&quot;10&quot; layout=&quot;col&quot; pad=&quot;12&quot; margin=&quot;8&quot;&gt;<br>    &lt;ROW valign=&quot;center&quot;&gt;<br>         &lt;COL expand=&quot;false&quot; margin=&quot;10,20&quot; valign=&quot;around&quot;&gt;<br>              &lt;TXT value=&quot;Name:&quot;/&gt;<br>              &lt;TXT value=&quot;First Last&quot; size=&quot;20&quot;/&gt;<br>              &lt;TXT value=&quot;Occupation:&quot;/&gt;<br>              &lt;TXT value=&quot;Users Occupation&quot; size=&quot;25&quot;/&gt;<br>         &lt;/COL&gt;<br>         &lt;BOX height=&quot;100&quot; margin=&quot;10&quot; color=&quot;black&quot;  radius=&quot;10&quot;&gt;<br>              &lt;LIST id=&quot;taildata&quot; direction=&quot;horizontal&quot; &gt;<br>                    &lt;ITEM pad=&quot;10&quot; id=&quot;planeitem&quot; layout=&quot;col&quot; center=&quot;true&quot;  selected=&quot;={this.index} == 0&quot; color=&quot;={this.selected} ? &#39;#7b008322&#39; : &#39;black&#39;&quot;  bordercolor=&quot;={this.selected} ? &#39;#c300d0&#39; : null&quot; border=&quot;all&quot; margin=&quot;5&quot; radius=&quot;10&quot;&gt;<br>                        &lt;ICON icon=&quot;airplanemode_active&quot; size=&quot;34&quot; color=&quot;={planeitem.selected} ? &#39;white&#39; : &#39;grey&#39;&quot;/&gt;<br>                        &lt;TEXT value=&quot;AXAXA&quot;  color=&quot;={planeitem.selected} ? &#39;white&#39; : &#39;grey&#39;&quot; size=&quot;10&quot;/&gt;<br>                   &lt;/ITEM&gt;<br>              &lt;/LIST&gt;<br>          &lt;/BOX&gt;<br>     &lt;/ROW&gt;<br>&lt;/SBOX&gt;</pre><p>And a display panel with an image, with a repeated column of data allowing us to reuse its structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McIb73xf5NpFxxMpMsdi6Q.png" /><figcaption>The info pane for the jets with the jet image</figcaption></figure><pre>&lt;SBOX ...&gt;<br>...<br>     &lt;ROW layout=&quot;row&quot; valign=&quot;center&quot; color=&quot;black&quot; radius=&quot;5&quot;&gt;<br>           &lt;ROW id=&quot;boxheight&quot; layout=&quot;row&quot; color=&quot;#7b008366&quot; halign=&quot;between&quot; pad=&quot;10&quot;&gt;<br>                &lt;SBOX pad=&quot;0,5&quot; flex=&quot;1&quot;&gt;<br>                     &lt;TXT value=&quot;Price&quot;/&gt;<br>                     &lt;TXT value=&quot;$ 1.4M&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>                     &lt;TXT value=&quot;Cost/Hr:&quot;/&gt;<br>                     &lt;TXT value=&quot;$ 5000&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>                     &lt;TXT value=&quot;Fuel:&quot;/&gt;<br>                     &lt;TXT value=&quot;500 gal/hr&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>                     &lt;TXT value=&quot;Yeary Additional:&quot;/&gt;<br>                     &lt;TXT value=&quot;$ 100K&quot; style=&quot;h5&quot; margin=&quot;5&quot;/&gt;<br>                &lt;/SBOX&gt;<br>                ...<br>             &lt;/ROW&gt;<br>             &lt;BOX width=&quot;20&quot; height=&quot;1&quot;/&gt;<br>             &lt;!--Giving the image a max height allows it not to oversize--&gt;<br>             &lt;IMG url=&quot;resources/images/DOGEPLANE.jpg&quot; maxheight=&quot;400&quot; maxwidth=&quot;400&quot;/&gt;<br>     &lt;/ROW&gt;<br>&lt;/SBOX&gt;</pre><h4>Building The Bottom Right Map and Layout</h4><p>The lower quadrant contains charts on the left, and a map on the right, starting with the layout, we can use MAP directly rather than a placeholder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SeTR5Vm2PbgEMhPcSv1_Q.png" /><figcaption>Creating a map with a space for charts</figcaption></figure><pre>...<br>    &lt;ROW flex=&quot;5&quot;&gt;<br>          &lt;BOX border=&quot;all&quot; radius=&quot;10&quot; flex=&quot;2&quot; pad=&quot;12&quot; margin=&quot;8&quot; color=&quot;black&quot;&gt; <br>            &lt;!--This will house the three charts--&gt;<br>          &lt;/BOX&gt;<br>          &lt;BOX flex=&quot;3&quot;&gt;<br>               &lt;TXT value=&quot;Location Data&quot; style=&quot;h5&quot; margin=&quot;10&quot;/&gt;<br>               &lt;!--A map will display a blank, interactable, map when not given markers--&gt;<br>               &lt;MAP zoom=&quot;5&quot; flex=&quot;1&quot; showall=&quot;true&quot; margin=&quot;8&quot; radius=&quot;10&quot; border=&quot;all&quot; &gt;<br>               &lt;/MAP&gt;<br>          &lt;/BOX&gt;<br>     &lt;/ROW&gt;<br>&lt;/COL&gt;</pre><p>We can add a marker to display data within the map:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gj23-OG98dHd8CzKPFw4sw.png" /><figcaption>Adding a marker to the map</figcaption></figure><pre>&lt;MAP ...&gt;<br>       &lt;MARKER latitude=&quot;0&quot; longitude=&quot;0&quot;&gt;<br>            &lt;!--A marker can be a combination of any widgets, we use<br>            a simple icon--&gt;<br>            &lt;ICON icon=&quot;location_on_outlined&quot; color=&quot;black&quot;/&gt;<br>       &lt;/MARKER&gt;<br>&lt;/MAP&gt;</pre><h4>Building The Bottom Right Charts</h4><p>Lastly for the layout, we build the charts, which will display as an icon until data is added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eY5gFMKEg6XhMDrOYQHezQ.png" /><figcaption>The output when charts are added without data</figcaption></figure><p>A line chart:</p><pre>...<br>&lt;BOX ...&gt;<br>     &lt;TXT value=&quot;Flight Duration&quot; style=&quot;h5&quot; margin=&quot;10&quot;/&gt;<br>     &lt;!-- CHARTS take in axis to determine the chart scale<br>    and series to plot the points--&gt;<br>     &lt;CHART flex=&quot;1&quot;&gt;<br>          &lt;XAXIS type=&quot;category&quot; title=&quot;Date&quot; /&gt;<br>          &lt;YAXIS type=&quot;numeric&quot; title=&quot;Duration(h)&quot; /&gt;<br>          &lt;SERIES type=&quot;bar&quot; color=&quot;lightblue&quot; /&gt;<br>     &lt;/CHART&gt;</pre><p>A bar chart:</p><pre>...<br>&lt;TXT value=&quot;Arrival and Departure Time Average&quot; style=&quot;h5&quot; margin=&quot;10&quot;/&gt;<br>&lt;CHART flex=&quot;1&quot;&gt;<br>     &lt;XAXIS type=&quot;category&quot; title=&quot;Hour&quot; /&gt;<br>     &lt;YAXIS type=&quot;numeric&quot; title=&quot;Flights&quot; /&gt;<br>     &lt;SERIES type=&quot;bar&quot; color=&quot;lightblue&quot; /&gt;<br>&lt;/CHART&gt;</pre><p>and two pie charts:</p><pre>...     <br>     &lt;TXT value=&quot;Flights Per Day Of Week&quot; style=&quot;h5&quot; margin=&quot;10&quot;/&gt;<br>     &lt;ROW&gt; <br>          &lt;!--A pie chart only has an X axis--&gt;<br>          &lt;CHART type=&quot;pie&quot; showlegend=&quot;false&quot;&gt;<br>               &lt;XAXIS  title=&quot;Departures&quot; /&gt;<br>               &lt;SERIES name=&quot;Departure Day&quot; x=&quot;monday&quot; color=&quot;purple&quot;/&gt; <br>          &lt;/CHART&gt;<br>          &lt;CHART type=&quot;pie&quot; showlegend=&quot;false&quot;&gt;<br>               &lt;XAXIS  title=&quot;Arrivals&quot; /&gt;<br>               &lt;SERIES name=&quot;Arrival Day&quot; color=&quot;purple&quot;/&gt;<br>          &lt;/CHART&gt;<br>     &lt;/ROW&gt;<br>&lt;/BOX&gt;</pre><p>That’s all for the most difficult part: The Layout and UI! <strong>We have managed to build our entire dashboard’s UI in 271 lines.</strong> As you can tell, this takes up the majority of the line count and bulk of the project.</p><h3>Bonus: Creating A Mobile Friendly UI</h3><p>For a bonus round, we are going to use the built in databinding to create a mobile friendly layout within our template. You can do this either as the same template, or as a separate one. In our case we will do it combined to display more features of FML, and do it as the step after the web design. Normally, we would advice Mobile First Design be practiced.</p><p>First, we will determine the width at which our layout begins to look poor and cut off items, we can do this via the full dash to get a better sense of the layout, We can add a temporary {SYSTEM.screenwidth} binding to the title page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ch9vRz4RSfv_paH29ZcFzA.png" /><figcaption>Cut off items in the bottom left need to be handled</figcaption></figure><p>As we can see, 1748 is the first section we start to lose readability, mainly on the bottom left quadrant within the boxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qOwRJQMJXrNtwrdy2i5fRQ.png" /><figcaption>Ensuring items arent cut off</figcaption></figure><p>To remedy this, we create a VAR to denote when the screen is too small:</p><pre>&lt;VAR id=&quot;isSmall&quot; value=&quot;={SYSTEM.screenwidth} &amp;lt; 1748&quot;/&gt;</pre><p>And then force these items to wrap within their rows:</p><pre>&lt;TXT value=&quot;20 Day Flight Statistics&quot; style=&quot;h5&quot; margin=&quot;0,10,10,10&quot;/&gt;<br>&lt;SCROLL&gt;<br>     &lt;ROW wrap=&quot;={isSmall}&quot;&gt;<br>     ...<br>     &lt;/ROW&gt;<br>     &lt;ROW wrap=&quot;={isSmall}&quot;&gt;<br>     &lt;/ROW&gt;<br>&lt;/SCROLL&gt;</pre><p>Next we can find the next smallest threshold, which seems to be 1255. The largest problem here is the jet image, as well as the Recent flight stats, so with this we will do the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPlxSVoxaxI0aSj_Cum5vQ.png" /><figcaption>Creating a smaller screen view</figcaption></figure><p>First the VAR:</p><pre>&lt;VAR id=&quot;isSmaller&quot; value=&quot;={SYSTEM.screenwidth} &amp;lt; 1255&quot;/&gt;</pre><p>With this we set the jet image visibility:</p><pre>&lt;IMG visible=&quot;=!{isSmaller}&quot; .../&gt;</pre><p>And Wrap the recent flight stats rows:</p><pre>&lt;ROW  wrap=&quot;={isSmaller}&quot;&gt;<br>...<br>&lt;/ROW&gt;<br>&lt;ROW  wrap=&quot;={isSmaller}&quot;&gt;<br>...<br>&lt;/ROW&gt;</pre><p>Finally, we will determine the mobile view, which in this case we will use anything less than 940.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Pe2E_FIjCKGTGsEKAmgeA.png" /><figcaption>Creating a mobile response</figcaption></figure><p>Again creating a VAR:</p><pre>&lt;VAR id=&quot;isMobile&quot; value=&quot;={SYSTEM.screenwidth} &amp;lt; 940&quot;/&gt;</pre><p>We force the jet info panel to wrap:</p><pre>&lt;ROW id=&quot;boxheight&quot; layout=&quot;row&quot; color=&quot;#7b008366&quot; halign=&quot;between&quot; pad=&quot;10&quot; wrap=&quot;={isMobile}&quot;&gt;</pre><p>Hide the header text</p><pre>&lt;TEXT value=&quot;FMLJet&quot; visible=&quot;={isMobile}&quot; style=&quot;h2&quot;/&gt;</pre><p>Wrap a box and a scroller around the two columns to set the correct layout direction, as well as assigning them min and max heights:</p><pre>&lt;SCROLL&gt;<br> &lt;BOX layout=&quot;={isMobile} ? &#39;col&#39; : &#39;row&#39;&quot;  minheight=&quot;1000&quot;&gt;<br>&lt;/BOX&gt;<br>&lt;/SCROLL&gt;</pre><p>And finally, do the same for the bottom right, changing the ROW to a BOX so we can choose layout.</p><pre>&lt;BOX layout=&quot;={isMobile} ? &#39;col&#39; : &#39;row&#39;&quot; flex=&quot;5&quot;&gt;</pre><p>Ideally, for mobile you would have a separate view where each box is a PAGE in the PAGER widget.</p><h3>Conclusion of Part 1</h3><p>Up to this point, we have the following UI that responds to screen size changes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gWHxf1D8F8GSBopAB5ciQ.png" /><figcaption>The final layout after completing Part 1</figcaption></figure><p>With that we have completed the overall layout for the dashboard, with the majority of its functionality built in prior to the data being added! Layout, by far, is the most time consuming section. We will see that adding, transforming, manipulating, and driving UI based on datasources in Part 2 is much easier and quicker! Remember, for any assistance, suggestions, or feedback:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ"><strong>Chat with us on Our Discord.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>Visit The Wiki.</strong></a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1"><strong>Subscribe to Our YouTube Channel.</strong></a></li><li><a href="https://medium.com/@TheOlajos"><strong>Follow me on Medium.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit, Contribute, and Star FML’s Github Repo.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language-VS-Code-Extension"><strong>Visit, Contribute, and Star FML’s VSCode Extension Github Repo.</strong></a></li></ul><p>Thanks for reading!<a href="https://medium.com/@TheOlajos/build-a-celebrity-jet-tracking-dashboard-in-360-lines-with-flutter-markup-language-part-2-data-65addf866b21"> <strong>For part 2 of 2, check out the next article: Connecting Data and Functions.</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c114806d87b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Faster, Easier, and More Powerful Cross Platform Applications — Flutter Markup Language 2.0]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/flutter-markup-language-2-0-8b621f69c4c1?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b621f69c4c1</guid>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 15:34:20 GMT</pubDate>
            <atom:updated>2023-06-13T17:52:06.052Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create Faster, Easier, and More Powerful Cross Platform Applications — Flutter Markup Language 2.0 Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Umi8ofu5nyIjxAF6cS9uBA.png" /></figure><h4>We have been hard at work summiting the peak that is The Flutter Markup Language 2.0 Release… and it’s Finally Here!</h4><p>With a massive rework of layout changes, to new widgets, functionality enhancements, bug fixes and QoL improvements:</p><blockquote><strong>We are very proud to announce that FML 2.0 is the fastest, easiest to use, and most powerful version yet… </strong><a href="https://fml.dev/#/templates/intro/get-started.xml"><strong>and is available for download today!</strong></a></blockquote><p>So what’s new in 2.0 you ask? Well, <strong>for a comprehensive list,</strong><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases"><strong> you can check out our Release notes on GitHub</strong></a>, or the <a href="https://medium.com/@TheOlajos/whats-new-in-the-flutter-markup-language-2-0-upcoming-release-2854139c65ba"><strong>updated Pre-Release article on Medium.</strong></a> In this article we are going to explore just a few of the major differences between 2.0 and 1.3, and go over some of the progress we have made so far.</p><h4><strong>With 678 commits, 395 files, 20,763 additions, 15,822 deletions, and new contributors to the codebase, 2.0.0 is the biggest version upgrade yet!</strong></h4><p><em>note: The FML apps through the play and ios store will be available once the 2.0.0 submission has passed the internal store review processes.</em></p><h3>Sibling Awareness, Layout Performance, and Simplified Templates</h3><blockquote>To start, lets look at the largest forward facing feature, Widget Sibling Awareness. <strong><em>Not only does this feature cut template code exponentially, but also allows for massive performance gains compared to the less dynamic 1.3 layout system.</em></strong></blockquote><p>To demonstrate the basics, let’s start with a simple case; we want 4 boxes to share the screen evenly, one in each quadrant as we can see below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GhF0OmrIUe1WUInRHww8OQ.png" /><figcaption>A sample layout</figcaption></figure><p>To achieve this in 1.3 (left) vs 2.0 (right), we produce the following templates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxCnA3tuOofZwgkZZIUkpw.png" /><figcaption>The FML Template producing a 4x4 grid in 1.3 (left) vs 2.0 (right)</figcaption></figure><blockquote><strong>Between 1.3 (279 char, left) and 2.0 (160 char, right) we have almost a 55% difference in character count.</strong></blockquote><p>On top of the obvious reduction in attributes and widget nesting, the ability to predict layout and preform complex layouts easily has become much more intelligent by default. For example, if we add a TEXT widget that can be variable in height above a half view of the boxes like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiXltQu4E2WxPhzejKheZw.png" /><figcaption>Adding TEXT to a 1.3 template vs 2.0 without any additional attributes</figcaption></figure><p>2.0 (right)<strong> </strong>fits well within the window, whereas<strong> </strong>1.3 (left)<strong> </strong>overflows the green box as indicated by the red border when simply adding a TEXT widget.</p><p>In the previous 1.3 layout system, to avoid complexity the developer generally placed widgets within a SCROLLER, fixed the height of widgets or, in this case, preform complex calculations for height based on the width of the screen.</p><p><strong>We can see how simple it is to reproduce in 2.0 (right) vs in 1.3 (left), </strong>1.3 requires cumbersome calculations and bindings to mitigate the overflow as text wraps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lzCyqMcQ__YXxN_U7VI8Zw.png" /><figcaption>The template script producing the same dynamic layout in FML 1.3 (left) vs FML 2.0 (right)</figcaption></figure><p>Although the old template will work in both 2.0 and 1.3 due to the controllability of layout in FML, <strong>2.0 automatically handles sibling awareness, and greatly reduces complexity of difficult UI interactions.</strong></p><blockquote><strong>Performance of layout in 2.0, despite built in widget interactions, is much quicker than in previous versions.</strong></blockquote><p>When talking about scrollable and fixed size layouts, layout simplicity hasn’t changed much from 1.3 other than improved performance and predictability. <strong>With variable sized UI’s that are designed to fit within the users viewport 2.0 really shines.</strong></p><p>Looking at the start of a Jet Tracking Dashboard from 1.3 (left), we can see the final result of the completed project in 2.0 (right):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngu4ZkT_KpbvOYQL5hR3Sg.png" /><figcaption>Basic Layout for Jet Dashboard in FML 1.3 ( left) vs Completed Dashboard in FML 2.0 (right)</figcaption></figure><p><strong>Although 1.3 is just an unfinished layout with no UI functionality, and 2.0 is the fully functioning project using live data, </strong>there is a minimal difference in line count between the two templates<strong> </strong>(325 vs. 351)<strong>, </strong>and only and 53% difference in character count (10500 char vs. 1800 char):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qy1V1GPX2WnDuPff51M8MQ.png" /><figcaption>Code snippet of FML 1.3 Unfinished Jet Dashboard (left) vs. FML 2.0 Completed Jet Dashboard (right)</figcaption></figure><p>A project with no functionality occupies a majority of its length attempting to build a dynamic layout. <strong>In 2.0, layout is consistent, intelligent, controllable, and predictable</strong>.</p><p>Overall, the dashboard tutorial should take a little under two hours for a user to complete from scratch, with the ability to immediately run on all platforms from a single template using live data.</p><blockquote><strong>Keep and eye out for the FMLJet Tutorial on Medium and YouTube.</strong></blockquote><h3>Developing FML With VSCode</h3><p>Another massive update to 2.0 is the ability to <strong>preview template layouts and local function live in VSCode,</strong> have descriptive syntax highlighting, and access valuable widget snippets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sw02aX-uzuYrdVWhNFPmHg.png" /><figcaption>The VSCode Extension live preview</figcaption></figure><p><a href="https://pad.fml.dev/">Much like FMLPad,</a> developing in VSCode with hot reload and syntax highlighting makes the Realtime nature of FML even more powerful, while working seamlessly with your other extensions! As you can see, network function is still limited to setting up a full environment, but viewing layout and in template data greatly improves the experience of the developer.</p><blockquote><a href="https://marketplace.visualstudio.com/items?itemName=appdaddy-software-solutions-inc.flutter-markup-language"><strong>You can download the Flutter Markup Language Extension from the VSCode Marketplace Today.</strong></a></blockquote><p>For the next version, a full fledged language server with linting is in the works to assist your development even further.</p><p>That is just a quick preview of some of the features added to <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases"><strong>Flutter Markup Language 2.0</strong>.</a> I hope you find the new updates improve your ability to build cross platform applications quickly. If you have any questions about FML, writing templates, updating your application, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ"><strong>Chat with us on Our Discord.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>Visit The Wiki.</strong></a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1"><strong>Subscribe to Our YouTube Channel.</strong></a></li><li><a href="https://medium.com/@TheOlajos"><strong>Follow me on Medium.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit, Contribute, and Star FML’s Github Repo.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language-VS-Code-Extension"><strong>Visit, Contribute, and Star FML’s VSCode Extension Github Repo.</strong></a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b621f69c4c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s new in Flutter Markup Language 2.0 ‘s Upcoming Release]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/whats-new-in-the-flutter-markup-language-2-0-upcoming-release-2854139c65ba?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2854139c65ba</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[new-releases]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Tue, 23 May 2023 12:04:30 GMT</pubDate>
            <atom:updated>2023-06-13T15:49:38.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>Massive bump in layout performance, simplified widget trees, form enhancements, an FML VSCode Extension and more!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Umi8ofu5nyIjxAF6cS9uBA.png" /></figure><h4>Since the release of 1.3.0 we have been hard at work bringing some massive improvements to Flutter Markup Language. This includes massive bumps in layout performance, improved rulesets, a VSCode extension with syntax highlighting and code snippets to name a few!</h4><blockquote>Flutter Markup Language 2.0 is now LIVE and can be downloaded, compiled, and edited! <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases/">View the release notes here.</a></blockquote><p>The focus of the dev team from 1.3 to 2.0 was to improve the consistency and predictability of layouts, define a strong set of rules for laying out widgets, and most importantly: <strong>vastly improve the speed of layout in Flutter Markup Language at both a performance and development level.</strong></p><p>If you are unfamiliar with FML, it’s use cases, or would like to learn more, you can <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1"><strong>check out our YouTube channel</strong></a>,<strong> </strong><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>visit the GitHub wiki</strong></a>, or <a href="https://fml.dev/"><strong>see live examples on fml.dev</strong></a>. You can also check out the <a href="https://medium.com/@TheOlajos/why-not-just-flutter-benefits-and-use-cases-of-flutter-markup-language-5e88aa23aeee"><strong>Flutter Markup Language: Benefits and Use Cases article</strong></a><strong>!</strong></p><p>Not only has our team made a host of upgrades, but <strong>we also have FML 2.0 running on </strong><a href="https://docs.flutter.dev/release/release-notes/release-notes-3.10.0"><strong>Flutter 3.10</strong></a> which offers its own suite of performance enhancements, default Material3 support, smaller load sizes, preparation for multiwindow support, and more!</p><p><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases"><strong>Keep an eye out for the the Flutter Markup Language 2.0 release here</strong></a>, or read ahead for some specific examples on the main new features!</p><h4>Layout Performance, Predictable Rulesets, and Crashproofing</h4><p>First and foremost, <strong>we improved the speed of layout by almost 3x in some cases, while adding additional default interactions to all layout widgets!</strong> This allows for quicker painting times while drawing templates in real time, increased controllability, and smarter interaction of widgets by default; saving you time and greatly reducing the size of your templates!</p><p>Some of the layout additions we have added, on top of the new <strong>layout ruleset, include:</strong></p><ul><li><strong>Automatic sibling awareness — </strong>When laying out widgets, we have added the ability for all widgets to know their available size by default, regardless of position in the tree. This allows for multiple widgets to share available space in their main axis within their parent, without any work on the part of the developer!</li><li><strong>Built in flex factors — </strong>The flex factors allow fine control of a widget when it takes up available space by using the flex=”” attribute on any viewable widget. This allows you to tell a widget to share more or less of the available space with its other siblings that do not have a hard size.</li><li><strong>Always-known constraint passing — </strong>Previously, certain widgets such as EXPANDED would break the constraint tree, forcing devs to hard size most items within the widget, and increasing the chance of overflow when on unexpected screen dimensions. We have ensured with the new ruleset that constraints are always known and bindable, even if they aren’t used. This allows for widgets to take up space without overflowing on any screen dimension!</li><li><strong>Dry-run layout — </strong>Previously, layout was deferred to Flutter, which would force multiple rebuilds with our current ruleset. This forced us to get under the hood and use dart to preform the initial layout before painting to the screen, allowing the quickest multipass sizing available! This ensures all your widgets know their size in the tree, regardless of parent or sibling!</li><li><strong>Decoration on All Layout Widgets — </strong>With the ability of widgets to size in specific ways based on their layout, we have decided to add decoration attributes to all layout widgets without costing any performance! This allows you to use the best widget for the job based on its sizing behaviors, regardless of whether or not you want a background color, border, or shadow!</li><li><strong>Padding and Margins — </strong>On top of all the additional consolidations, we added pad=”” and margin=”” as an attribute on all widgets, which is taken into account for every layout pass. This allows you to pad the internals, or add a margin externally without the need for different widgets that can break alignment. This reduces nesting greatly and decreases the tree size, allowing you to only see the widgets in your template that are most important!</li></ul><h4>Other Improvements and Additions</h4><ul><li>Form Field Error state and Error Messages for all FormField widgets.</li><li>Alarms for FormFields that affect the visual error state of the widgets, With custom error messages, individual triggers, and event strings.</li><li>Autofilling and Autoposting FORMS.</li><li>FIELD widget for Form, for non viewable posting data.</li><li>SBOX (expand=”false” on box), CARD (a BOX with a border and color by default) and other shorthand syntax for widgets to reduce attribute loads.</li><li>Added a STASH datasource to view all stashed values.</li><li>Improved Pager’s Currentpage binding.</li><li>Visual fixes for list and table.</li><li>Improved default sizing of complex widgets such as chart, modal, and drawer.</li><li>Stopped double build on navigation.</li><li>Updated codebase to pass all lints.</li><li>Chart UI and performance improvements.</li><li>Chart axis start/cutoffs and intervals added.</li><li>Chart axis label customization.</li><li>Chart Legend Sizing.</li><li>Chart selection follower and draggability.</li><li>Chart Annotations added.</li><li>Improved Debug Logs and messages.</li><li>Improved Default Prompts and Messages.</li><li>Added updated Video Player Widget.</li><li>Fixes to DATA to take subset of other widgets such as SELECT.</li><li>Multiple bug fixes.</li></ul><h4>What’s Upcoming For Flutter Markup Language</h4><p>As our focus is always on improvement of stability and performance on all devices, we also try to incorporate new features, and improve the existing ones in FML. Some features that we are currently working on coming down the pipe are:</p><p><strong>PROTOTYPE and STYLES</strong> — A Configuration that allows for a user to specify overridable style and attributes for specific widgets, allowing them to be used across the entire application and changed from a single location. This is used to extend THEME.</p><p><strong>Drag and Drop template builder — </strong>This one is a bit further off, but we are seriously looking into the start of a drag and drop codeless platform, that will be built in FML, and render FML templates!</p><p><strong>New Widgets — </strong>DRAG and DROP widgets,</p><p><strong>JSON Support for auto-building/auto-filling forms — </strong>The next step in the form iterations is to support input and output of auto-filling and auto-building forms!</p><p><strong>VSCode FML Extension Beta</strong> — <a href="https://marketplace.visualstudio.com/items?itemName=appdaddy-software-solutions-inc.flutter-markup-language">An alpha version is currently available in the extension marketplace.</a> We aim to improve the stability and usability, while also implementing FML lints!</p><p><strong>Content Blitz — </strong>With the recent stability and changes, our small team will be focussing on producing a large amount of educational and example content using FML, such as a Celebrity Jet Tracker Dashboard tutorial, Serveless Connections in FML, and more!</p><p>That is just a small list of the features we are working on adding to FML currently. <strong>If you would like to suggest features, or contribute your own, please </strong><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit The GitHub</strong></a><strong> and try your hand at adding a new Widget and creating a PR! </strong>As always, we continue to improve and iterate on already existing features, while always providing new and improved features to help build complex applications quickly.</p><p>That is just a quick preview of some of the features added to <strong>Flutter Markup Language 2.0</strong>. If you have any questions about FML, writing templates, updating your application, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ"><strong>Chat with us on Our Discord.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><strong>Visit The Wiki.</strong></a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1"><strong>Subscribe to Our YouTube Channel.</strong></a></li><li><a href="https://medium.com/@TheOlajos"><strong>Follow me on Medium.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit, Contribute, and Star FML’s Github Repo.</strong></a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language-VS-Code-Extension"><strong>Visit, Contribute, and Star FML’s VSCode Extension Github Repo.</strong></a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2854139c65ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing FMLPad — The Fastest Way to Writing Flutter Markup Language]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/introducing-fmlpad-the-fastest-way-to-writing-flutter-markup-language-d32d7c103c9c?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d32d7c103c9c</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[flutter-mark]]></category>
            <category><![CDATA[application]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 14:12:19 GMT</pubDate>
            <atom:updated>2023-02-14T14:12:19.608Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing FMLPad — The Fastest Way to Writing Flutter Markup Language</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzu-qPH4BvNofXK4kT9ROg.png" /></figure><p><strong>Today we are going to explore the newest feature of FML, FMLPad</strong>. You can use FMLPad to view demos, build templates, and explore Flutter Markup Language.<strong> </strong>Although there are many ways to get an FML App up and running, such as <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Quick-Start-Guide">through a local folder</a>, <a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb">online</a>, <a href="https://medium.com/@TheOlajos/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525">over LAN</a>, and <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Backend-server-configuration">using your own file server</a>; using <strong>FMLPad is a 0 time investment way of trying out FML in your browser or desktop window.</strong></p><h4><a href="https://pad.fml.dev/#/assets/assets/applications/fmlpad/fmlpad.xml"><strong>You can access FMLPad now at https://pad.fml.dev.</strong></a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgM2a03RI2t-2niJmfPGSQ.png" /></figure><p><strong>FMLPAD was built in FML.</strong> <a href="https://pad.fml.dev/assets/assets/applications/fmlpad/fmlpad.xml">You can checkout the template</a> if you download our sample app, or simply navigate to <a href="https://pad.fml.dev/#/assets/assets/applications/fmlpad/fmlpad.xml">pad.fml.dev</a> to try it out! This means that FMLPAD is totally customizable, and can be integrated with any widgets, pages, and functions in Flutter Markup Language apps!</p><p>As you can see, FMLPAD is loaded with a base example, as well as examples for widgets, events, evaluations, and Datasources in FML that can be chosen from the dropdown. This allows you to modify and experiment with Flutter Markup’s live examples in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfy0frQvi9VseSsptQgs6A.png" /></figure><p>FMLPAD also has the option to copy widgets to the clipboard for quick insertion, save your Flutter Markup as an xml file, load FML from files, and interpret templates in Realtime or at the press of a button!</p><p>Because FMLPad is written in FML, <a href="https://pad.fml.dev/assets/assets/applications/fmlpad/fmlpad.xml">you can view the template</a>, and play with it’s example in FMLPad which uses Themes, Datasources, and more!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lylc2BAXIDnLMmI0Q3__Hw.png" /></figure><p>I hope you find FMLPad useful for playing with Flutter Markup Language. If you have any questions about FML, writing templates, updating your application, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></li><li><a href="https://medium.com/@TheOlajos">Follow me on Medium.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language">Visit, Contribute, and Star FML’s Github Repo.</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d32d7c103c9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server Driven UI: Instant Cross-Platform App Updates and Widget Injection using Flutter Markup…]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/instant-cross-platform-app-updates-and-widget-injection-using-flutter-markup-language-5373ed50125c?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5373ed50125c</guid>
            <category><![CDATA[interpretation]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <category><![CDATA[fml]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 17:37:12 GMT</pubDate>
            <atom:updated>2023-02-15T17:44:43.641Z</atom:updated>
            <content:encoded><![CDATA[<h3>Server Driven UI: Instant Cross-Platform App Updates and Widget Injection using Flutter Markup Language.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzu-qPH4BvNofXK4kT9ROg.png" /></figure><p>Today we are going to cover one of the most unique features of Flutter Markup Language, <strong>updating applications instantly across devices and platforms, and injecting widget trees for individual instances in a live application.</strong> For this injection, we are going to use a REST API Get call that returns a widget tree, but you can use any method you would like!</p><p><strong>The core component of Flutter Markup Language is to allow for comprehensive Server-Driven UI across all platforms, including installed applications.</strong></p><p>Due to Flutter Markup Language being a cross-platform interpreted language, as well as its ability to run on all devices as a WebApp or installed application, FML allows you to shorten the traditional update pipeline and circumvent creating systems that allow applications to appear as though they are customized for individual users by using FML’s direct widget injection, either within templates or over network calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-DyfBdS35c1qFfKQUZrNlA.png" /><figcaption>Using Network Calls To Update Templates and Inject Widgets</figcaption></figure><p>If you are unfamiliar with FML, it’s use cases, or would like to learn more, you can <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">check out our YouTube channel</a>, <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">visit the GitHub wiki</a>, or <a href="https://fml.dev/">see live examples on fml.dev</a>.</p><p><strong>What we will cover:</strong></p><ul><li><strong>Updating your application across all platforms and environments instantly from your server’s Flutter Markup Language files.</strong></li><li><strong>The offline and online timing of these updates and how to modify the default behavior.</strong></li><li><strong>Injecting widget trees from a REST API Get call in a live application.</strong></li></ul><h3>Updating Your Cross Platform Application Instantly</h3><p>First, we will look at the process to update your application on all platforms it is running on. In our example, we will make a change to a single FML page, and see that change reflected on a windows app, within the chrome browser, and as an installed android application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooOhelbJrnxAY-x10RIsww.png" /></figure><p>To learn about setting up your initial FML app you can check out our guide using <a href="https://medium.com/@TheOlajos/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525">XAMPP and apache over LAN</a>, <a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb">fully online using NGROK</a>, or set up your own file server using the <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Backend-server-configuration">Server Configuration Guide</a>.</p><p><strong>Let’s get started!</strong></p><p>First, we will visit the counter-app page that comes with the default FML app on all of our devices. In your application, this can be any page, the entire application, or groups of pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Hxh7ltP3RZl6q2rYcttdg.png" /><figcaption>Windows, web and a screen mirrored android application</figcaption></figure><p>Next lets make a couple updates to the template called counter-app.xml in the templates folder. First lets change some functionality of the page, we can add two to the counter instead of one on each click.</p><pre>&lt;!--We change + 1 to + 2--&gt;<br>&lt;BTN onclick=&quot;clicknumber.set({clicknumber} + 2);&quot;</pre><p>Next, lets add some widgets and tie them to our existing function.</p><p>Create a button that subtracts 1 from the text. To align this we can wrap both buttons in a ROW, and PAD in between the two. We are keeping it simple, but you can add any widgets, function, or entirely redo the template.</p><pre>&lt;POS bottom=&quot;10&quot; right=&quot;10&quot;&gt;<br>   <br>   &lt;!--Added This Row--&gt;<br>   &lt;ROW&gt; <br><br>      &lt;BTN onclick=&quot;clicknumber.set({clicknumber} + 2);&quot; width=&quot;40&quot; height=&quot;40&quot; radius=&quot;50&quot; color=&quot;blue&quot; type=&quot;elevated&quot;&gt;<br>         &lt;ICON icon=&quot;add&quot; color=&quot;white&quot;/&gt;<br>      &lt;/BTN&gt; <br><br>      &lt;!--Added This Padding--&gt;<br>      &lt;PAD right=&quot;20&quot;/&gt;  <br><br>      &lt;!--Created a new button with an icon that subtracts 1--&gt;<br>      &lt;BTN onclick=&quot;clicknumber.set({clicknumber} - 1);&quot; width=&quot;40&quot; height=&quot;40&quot; radius=&quot;50&quot; color=&quot;red&quot; type=&quot;elevated&quot;&gt;<br>         &lt;ICON icon=&quot;remove&quot; color=&quot;white&quot;/&gt;<br>      &lt;/BTN&gt;<br><br>   &lt;/ROW&gt;<br><br>&lt;/POS&gt;</pre><p>Now, we navigate back a page, reopen the counter app, and there we have it. The changes are reflected on each device as a user navigates to the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DubUQdhVoRY6QoI8dgOLLw.png" /></figure><p>Though pages only update by default when added to the stack, The timing of this can be changed when a user goes back to a page instead of adding it to the stack, prioritize cache over server side updates, and more! For information on these changes, we will check out timing in the next section.</p><h3>Timing of Live App Updates</h3><p>Below, we will discuss how the FML engine fetches updated template files, and how to modify this strategy.</p><h4>The Default Configuration(s)</h4><p>The base app has “refresh” set to true in the config by default, and no “mirror”.</p><p><strong>When a page is called using a navigation event such as open(‘url’) or replace(‘url’), the engine looks to fetch the template from the server. </strong>This can be modified globally in the config.xml, as well as on a page per page bases via events within templates.</p><p>The FML engine will get the template from the server and build the page.</p><p>If refresh is set as false in the config, the FML engine will attempt grab the cached version and build the page, otherwise it will grab and cache the template from the server before building the page.</p><p>This page is then added to the stack, and will remain there in its current state unless removed by a navigation event such as back() or replace(‘url’).</p><p>If we open page C on top of page A, modify page A, then pop page C off of the stack, page A will remain in its current state by default and not fetch the update from the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YUTxQYVKD3YEmpRxvg0fBQ.png" /></figure><p>Pages will only update by default when added to the stack and refresh is true in the config, or the page is not in the cache if refresh is false when added to the stack.</p><p>This can be configured by the user to update the page in many different ways using the refresh() or update() events.</p><h4>Offline vs Online</h4><p>By default, if a device does not have a connection to the server, the FML engine will always use the cached version of a template when visited.</p><p>If a page is not in the cache while offline, it will display a page not found error when navigating to that page.</p><h4>Altering the Default Timing</h4><p>If the developer wants their application pages to always update as the user visits them, or update instantly as the changes are made even while the user is on that page, there are multiple ways to achieve this using the refresh() or update() events.</p><p>The config.xml settings pertaining to the events are as follows:</p><p><strong>REFRESH:</strong></p><ul><li>true: Default Setting. Always reaches out to server and caches the fetched template. If no template is available, the engine will attempt to find the cached version.</li><li>false : Always uses cached version of the template initially. If no cached version is available, the engine will attempt to grab the template from the server and cache it.</li></ul><p><strong>MIRROR:</strong></p><ul><li>url : by default the mirror does not have a url. When supplied a url pointing to a document containing the url’s to templates, the mirror will automatically download and cache all of the templates supplied by this url. On each startup after, the mirror will grab only the templates that are not in the cache.</li></ul><p>The events pertaining to fetching templates are as follows:</p><ul><li><strong>refresh()</strong> : Attempts to grab the template from the server and rebuilds the page from the new template, or from the cached version if offline or unavailable.</li></ul><p>To update a page when a user pops another page off the stack, we can modify the config based on the above events. If we want to do this individually, we need to put the refresh() or update() event on the `<strong>onreturn</strong>` attribute of the &lt;FML&gt; template tags. This will notify the engine to attempt to fetch the template from the server, and refresh the page to its original state in either scenario.</p><h3>Injecting Widgets Using a REST Call</h3><p>Finally, we will look at injecting widget trees and function into a users template using a REST API GET call. This can be done in many ways using the injection events, but for our purposes it will be api driven.</p><p>The injection events are as follows:</p><ul><li><strong>&lt;id&gt;.addchild(xml, index)</strong> : adds the passed widget tree as a child of a specific widget at an index. If index is null, it adds it to the end of the list.</li><li><strong>&lt;id&gt;.removechild(index)</strong> : removes the child(ren) of a specific widget and calls a rebuild. If index is null, it removes the last element.</li><li><strong>&lt;id&gt;.removechildren()</strong> : removes all of the children of a specific widget and calls a rebuild.</li><li><strong>&lt;id&gt;.replacechild(xml, index)</strong> : removes any existing child(ren) of a specific widget, then adds the passed widget tree to the specified widget and calls a rebuild.</li><li><strong>&lt;id&gt;.replacechildren(xml)</strong> : removes any existing children of a specific widget, then adds the passed widget tree to the specified widget and calls a rebuild.</li><li><strong>&lt;id&gt;. removewidget()</strong> : Removes a widget of a given id and calls rebuild.</li><li><strong>&lt;id&gt;.replacewidget(xml)</strong> : Removes a widget of a given id, then replaces it with the passed widget tree and calls a rebuild.</li></ul><p><strong>Lets take a look at a working example using a Get call.</strong></p><p>Lets start with the following template. The BOX widget with the <strong>id=”replacecontents”</strong> will be the target parent for our widget injection.</p><pre>&lt;FML title=&quot;APPENDCHILD (example1)&quot; linkable=&quot;true&quot;&gt;<br><br>    &lt;BOX center=&quot;true&quot;&gt;<br><br>        &lt;BOX id=&quot;replaceContents&quot; pad=&quot;20&quot; width=&quot;300&quot; height=&quot;400&quot; border=&quot;all&quot; bordercolor=&quot;green&quot;&gt;<br>             &lt;TEXT value=&quot;Replace ME!&quot;/&gt;<br>        &lt;/BOX&gt;<br>        &lt;BTN label=&quot;Fire!&quot; onclick=&quot;&quot;/&gt;<br><br>    &lt;/BOX&gt;<br>  <br>&lt;/FML&gt;</pre><p>First, we will set up a GET widget that returns a widget tree. In this case it will return the same tree to every user, but you can have this call modified in any way you see fit. We set a root of “” to force the accessible element to be the outer most element.</p><pre>&lt;GET url=&quot;resources/data/TREE.xml&quot; root=&quot;&quot;/&gt;</pre><p>Let’s set the autoexecute attribute to false so we can control when the GET is initially called. By default it is true.</p><pre>&lt;GET id=&quot;getWidgets&quot; url=&quot;resources/data/TREE.xml&quot; root=&quot;&quot; autoexecute=&quot;false&quot; /&gt;</pre><p>On the widget tree, we will use the &lt;id&gt;.replacechildren() event on the onsuccess attribute of the GET widget. In this case the id will be “replacecontents” from the BOX widget.</p><pre>&lt;GET id=&quot;getWidgets&quot; ... onsuccess=&quot;replaceContents.replacechildwidget()&quot;/&gt;</pre><p>Next, we will pass the databinding from the GET widget into the &lt;id&gt;.replacechilren() event.</p><pre>&lt;GET id=&quot;getWidgets&quot; ... onsuccess=&quot;replaceContents.replacechildren({this.data.widgets})&quot; /&gt;</pre><p>Now lets add a button that will execute the get call using the &lt;id&gt;.start() event in the buttons “onclick” attribute.</p><pre>&lt;BTN label=&quot;Fire!&quot; onclick=&quot;getWidgets.start()&quot;/&gt;</pre><p>And finally, create a structure that will be returned from the api, we will do this as a static file for simplicities sake. The replacement widget tree will be as follows:</p><pre>&lt;widgets&gt;<br>&lt;![CDATA[&lt;COL&gt;<br>&lt;TEXT id=&quot;text1&quot; value=&quot;I have been replaced&quot;/&gt;<br>&lt;BTN onclick=&quot;text1.set(&#39;Changed By The Button&#39;)&quot;&gt;<br> &lt;TEXT value=&quot;Change TEXT&quot;/&gt;<br> &lt;/BTN&gt;<br> &lt;BTN onclick=&quot;replacecontents.bordercolor.set(&#39;red&#39;)&quot;&gt;<br> &lt;TEXT value=&quot;Change BORDER&quot;/&gt;<br> &lt;/BTN&gt;<br> &lt;/COL&gt;<br> ]]&gt;<br>&lt;/widgets&gt;</pre><p>Now lets try it out, and as you can see when we press the button, the widget is added to the users app as the GET call returns a 200.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6W5dJHY-N1_xKXsTA_cXNw.png" /></figure><p>As you can see, the injection of widgets is driven by events and can be sourced from anywhere, VAR, INPUT, or other datasource widgets, even NFC!</p><p>The possibilities of injection are endless. From adding fields to custom built forms on an NFC tap to generating custom views for users based on their individual feedback.</p><p>I hope you enjoyed this overview. If you have any questions about FML, widget injection, updating your application, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></li><li><a href="https://medium.com/@TheOlajos">Follow me on Medium.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language">Visit and Star FML’s Github Repo.</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5373ed50125c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quickly Reading and Writing to NFC Tags, Grabbing Barcodes From Images, and More Using Flutter…]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/quickly-reading-and-writing-to-nfc-tags-grabbing-barcodes-from-images-and-more-using-flutter-60b670aeb734?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b670aeb734</guid>
            <category><![CDATA[barcode]]></category>
            <category><![CDATA[nfc]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 14:25:07 GMT</pubDate>
            <atom:updated>2023-02-06T17:35:20.725Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quickly Reading and Writing to NFC Tags, Grabbing Barcodes From Images, and More Using Flutter Markup Language.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzu-qPH4BvNofXK4kT9ROg.png" /></figure><p>Today we are going to look at <strong>connecting to hardware Datasources and detecting image data in your Flutter Markup Language app!</strong> Although there are many supported Datasources, we are going to look at the<strong> NFC Datasource, the CAMERA, and the BARCODE detector widget to grab barcodes from an image.</strong></p><p>If you are unfamiliar with FML, it’s use cases, or would like to learn more, you can <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">check out our YouTube channel</a>, <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">visit the GitHub wiki</a>, or <a href="https://fml.dev/">see live examples on fml.dev</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BijAXzcYPgcsV_KCgD5fqQ.png" /></figure><p><strong>What we will cover:</strong></p><ul><li><strong>Connecting to an NFC Datasource for a read and binding to it’s url’s attributes.</strong></li><li><strong>Writing To NFC tags within your application.</strong></li><li><strong>Connecting to and displaying image data from a CAMERA.</strong></li><li><strong>Setting up a BARCODE detector to grab barcode data from a CAMERA or image.</strong></li><li><strong>Binding to the barcode data within your application.</strong></li></ul><p>Although this list covers a very small portion of the possibilities and Datasources available in FML, it should give you a general understanding of the usage and functions of Datasources in Flutter Markup Language.</p><p><strong>Lets get started!</strong></p><h3>Reading, Writing, and Binding to NFC Data</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgcP6-YdVgkU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgcP6-YdVgkU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgcP6-YdVgkU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a8da2dd95765b4e7479e12e6d40272b/href">https://medium.com/media/0a8da2dd95765b4e7479e12e6d40272b/href</a></iframe><p>To begin, you will need your FML app up and running on any device you choose with NFC and Camera access. If you have not done this, check out our Quickstart articles <a href="https://medium.com/@TheOlajos/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525">using NGROK</a> or <a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb">using XAMPP</a>, or our <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Quick-Start-Guide">Quickstart Guide.</a> Remember, webcams only work with https:// connections in most browsers.</p><h4>Reading and Binding to NFC Data</h4><p>First we will create the &lt;FML&gt; template tags and an NFC widget.</p><pre>&lt;FML&gt;<br>  &lt;NFC id=&quot;nfcdata&quot;/&gt;<br>&lt;/FML&gt;</pre><p>Next, lets create a binding to display the general payload data from the NFC we will be reading. Hardware Datasources have a preset list of Bindable properties, in this case we will use “payload”. The wiki contains all of the possible bindings from each widget.</p><pre>&lt;FML&gt;<br>  &lt;NFC id=&quot;nfcdata&quot;/&gt;<br>  &lt;TEXT value=&quot;The NFC Data is: {nfcdata.payload}&quot;/&gt;<br>&lt;/FML&gt;</pre><p>Now, lets open the template with an NFC enabled device and approach the tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcS-qUyK44Iw7iu81bV1jA.png" /></figure><p>As you can see, we get the payload of this NFC, which is a url. Within the url you can see there are attributes and values. These attributes are automatically mapped to create Bindables. Lets bind to the “<strong>first” </strong>and <strong>“second” </strong>attributes.</p><p><em>note: NFC will also create bindables from JSON or XML like any Datasource widget.</em></p><pre>&lt;FML&gt;<br>  &lt;NFC id=&quot;nfcdata&quot;/&gt;<br>  &lt;COL&gt;<br>  &lt;!--When binding directly to payload, we bind to the attribute as the data can be overriden--&gt;<br>  &lt;TEXT value=&quot;The NFC Data is: {nfcdata.payload}&quot;/&gt;<br>  &lt;TEXT value=&quot;The firstvalue attribute is: {nfcdata.data.first}&quot;/&gt;<br>    &lt;TEXT value=&quot;The firstvalue attribute is: {nfcdata.data.second}&quot;/&gt;<br>  &lt;/COL&gt;<br>&lt;/FML&gt;</pre><p>To write using the NFC widget, we can use the <strong>&lt;id&gt;.write(‘string’)</strong> event for quick writes, or the attribute <strong>method=“write”</strong> for dedicated events using a posting body. Lets quickly set up a write button that allows us to replace attributes <strong>first </strong>and <strong>second</strong>.</p><pre>&lt;FML&gt;<br>  &lt;NFC id=&quot;nfcdata&quot;/&gt;<br>  &lt;COL&gt;<br>  &lt;!--When binding directly to payload, we bind to the attribute as the data can be overriden--&gt;<br>   &lt;TEXT value=&quot;The NFC Data is: {nfcdata.payload}&quot;/&gt;<br>   &lt;TEXT value=&quot;The firstvalue attribute is: {nfcdata.data.first}&quot;/&gt;<br>   &lt;TEXT value=&quot;The firstvalue attribute is: {nfcdata.data.second}&quot;/&gt;<br>   &lt;BTN label=&quot;writedata&quot; onclick=&quot;nfcdata.write(&#39;first=&amp;amp;second=&#39;)&quot;/&gt;<br>  &lt;/COL&gt;<br>&lt;/FML&gt;</pre><p>Now lets change the TEXT for first and second to INPUT so we can replace the values as well as display the bound values, and alert the user polling has started with a <strong>toast()</strong>:</p><pre>&lt;FML&gt;<br>  &lt;NFC id=&quot;nfcdata&quot;/&gt;<br>  &lt;COL&gt;<br>  &lt;!--When binding directly to payload, we bind to the attribute as the data can be overriden--&gt;<br>   &lt;TEXT value=&quot;The NFC Data is: {nfcdata.payload}&quot;/&gt;<br>   &lt;INPUT id=&quot;firstv&quot; hint=&quot;first&quot; value=&quot;{nfcdata.data.first}&quot;/&gt;<br>   &lt;INPUT id=&quot;secondv&quot; hint=&quot;second&quot; value=&quot;{nfcdata.data.second}&quot;/&gt;<br>   &lt;BTN label=&quot;writedata&quot; onclick=&quot;toast(&#39;approach the NFC&#39;);nfcdata.write(&#39;first={firstv}&amp;amp;second={secondv}&#39;);&quot;/&gt;<br>  &lt;/COL&gt;<br>&lt;/FML&gt;</pre><p>Once the write is triggered, the phone will poll for 60 seconds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*mlBEwfEo1aMK32F03gI58w.png" /></figure><p><strong>NFC Datasource With Multiple Records</strong></p><p>Now, lets add the ability to scan multiple tags. Using a LIST to display the data, we give the NFC Datasource a<strong> queuetype=“FIFO”</strong> and <strong>maxrecords= “5”</strong>. This can be done on any Datasource.</p><pre>&lt;NFC id=&quot;nfcdata&quot; queuetype=&quot;fifo&quot; maxrecords=&quot;5&quot;/&gt;</pre><p>Assign the NFC widget to the <strong>data=””</strong> attribute on the LIST, and create an item that binds to a single payload.</p><pre>&lt;FML&gt;<br>  &lt;!--We add fifo and 5 as a max record--&gt;<br>  &lt;NFC id=&quot;nfcdata&quot; queuetype=&quot;fifo&quot; maxrecords=&quot;5&quot;/&gt;<br><br>  &lt;!--We pass the nfcdata to the list--&gt;<br>  &lt;LIST data=&quot;nfcdata&quot;&gt;<br>    &lt;ITEM&gt;<br>      &lt;BOX expand=&quot;false&quot; border=&quot;all&quot;&gt;<br>        &lt;!--The payload is added to the data packet as well as a bindable, where we can use data. to bind--&gt;<br>        &lt;TEXT value=&quot;The NFC Data is: {data.payload}&quot;/&gt;<br>        &lt;TEXT value=&quot;The NFC Data is: {data.first}&quot;/&gt;<br>        &lt;TEXT value=&quot;The NFC Data is: {data.second}&quot;/&gt;<br>      &lt;/BOX&gt;<br>    &lt;/ITEM&gt;<br>  &lt;/LIST&gt;<br>  <br>&lt;/FML&gt;</pre><p>Now we can tap a few different payloads and see the list update with the item we have chosen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*2rwhJr-Ros45riWOuOKuJA.png" /></figure><h3>Using the CAMERA and FILEPICKER with DETECTORS to detect barcode data.</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEbEkkSl4R20%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEbEkkSl4R20&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEbEkkSl4R20%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/69639a4728b60cf59e383af058a7cf12/href">https://medium.com/media/69639a4728b60cf59e383af058a7cf12/href</a></iframe><p>Lets take a look at another hardware Datasource the CAMERA.</p><p>The CAMERA acts as both a Datasource and a view widget if desired. The CAMERA can also take any widget as a child to create custom overlays opposed to using the native controls, which can be toggled off using the <strong>controls=“”</strong> attribute.</p><p>First, lets create a basic template with a CAMERA, and a BUTTON to launch it. The camera will need to be hidden at the start, so we can set <strong>visible=“false”</strong>. We also want our <strong>start()</strong> and <strong>stop()</strong> events to toggle the cameras visibility on and off, so we will set <strong>togglevisible= “true”.</strong></p><pre>&lt;FML&gt;<br> &lt;BOX center=&quot;true&quot;&gt;<br>  &lt;BTN label=&quot;Open Camera&quot; onclick=&quot;camera.start();&quot;/&gt;<br> &lt;/BOX&gt;<br><br> &lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot;/&gt;<br>&lt;/FML&gt;</pre><p><em>note: the camera will expand to fill the whole page and be visible in the stack at its position. In this case, we put it last in the list, which is the top of the stack. We can also use the POSITIONED widget to alter the stack depth of the camera.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*7Num4926VM568wXU0r0uIg.png" /></figure><p>Now, lets add a BARCODE detector as a child:</p><pre>&lt;FML&gt;<br><br> &lt;BOX center=&quot;true&quot;&gt;<br>  &lt;BTN label=&quot;Open Camera&quot; onclick=&quot;camera.start();&quot;/&gt;<br> &lt;/BOX&gt;<br><br> &lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot;&gt;<br>  &lt;BARCODE id=&quot;detector1&quot;/&gt;<br> &lt;/CAMERA&gt;<br>&lt;/FML&gt;</pre><p>Lets force the user to detect a barcode before closing the camera. We can do this by setting <strong>controls=“false”</strong>, and adding an <strong>onsuccess=“”</strong> attribute to the barcode detector to close the camera once detected.</p><pre>&lt;FML&gt;<br><br> &lt;BOX center=&quot;true&quot;&gt;<br>  &lt;BTN label=&quot;Open Camera&quot; onclick=&quot;camera.start();&quot;/&gt;<br> &lt;/BOX&gt;<br><br> &lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot;  controls=&quot;false&quot;&gt;<br>  &lt;BARCODE id=&quot;detector1&quot; onsuccess=&quot;camera.stop();&quot;/&gt;<br> &lt;/CAMERA&gt;<br>&lt;/FML&gt;</pre><p>To display the detected barcode, lets add some text and bind to the BARCODE detectors data packet which can be found in the wiki. In this case the value we are interested in is <strong>data</strong>.<strong>barcode</strong>.</p><pre>&lt;FML&gt;<br><br> &lt;BOX center=&quot;true&quot;&gt;<br>  &lt;TXT value=&quot;The Barcode is: {detector1.data.barcode}&quot;/&gt;<br>  &lt;BTN label=&quot;Open Camera&quot; onclick=&quot;camera.start();&quot;/&gt;<br> &lt;/BOX&gt;<br><br> &lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot;  controls=&quot;false&quot;&gt;<br>  &lt;BARCODE id=&quot;detector1&quot; onsuccess=&quot;camera.stop();&quot;/&gt;<br>  &lt;POS top=&quot;10&quot; right=&quot;10&quot;&gt;<br>   &lt;BTN onclick=&quot;camera.stop();&quot;&gt;<br>    &lt;ICON icon=&quot;close&quot; color=&quot;white&quot;/&gt;<br>   &lt;/BTN&gt;<br>  &lt;/POS&gt;<br> &lt;/CAMERA&gt;<br>&lt;/FML&gt;</pre><p>Now if we try it out, the barcode is automatically grabbed and displayed and the camera is closed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*UCLPijg7jaNj1QTf1te4Ig.png" /></figure><p>As you can see, the user has no ability to close the camera within the context of the page without using the platforms back feature, so we can add in a close button to stop the camera.</p><pre>&lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot; controls=&quot;false&quot;&quot;&gt;<br>    &lt;BARCODE id=&quot;detector1&quot; onsuccess=&quot;camera.stop()&quot;/&gt;<br>    &lt;POS top=&quot;10&quot; right=&quot;10&quot;&gt;<br>      &lt;BTN onclick=&quot;camera.stop();&quot;&gt;<br>        &lt;ICON icon=&quot;close&quot; color=&quot;white&quot;/&gt;<br>      &lt;/BTN&gt;<br>    &lt;/POS&gt;<br> &lt;/CAMERA&gt; </pre><p>Now you can see we have a close button that allows the user to decide to back out of the CAMERA to the main page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*2DYxiJiJMRvKeGyV-KKZpw.png" /></figure><p>If we would like to display the image of the barcode alongside its data, we simply need to change the order of events.</p><p>We add an <strong>onsuccess=“”</strong> attribute to the camera, and have it close itself. Once the barcode succeeds, we have the camera take a snapshot. Lets bind to the camera’s image data and display it in an IMAGE widget.</p><p>Before the snapshot, lets ensure we stop the barcode detector by setting its enabled attribute using <strong>detector1.enabled.set(false);</strong>.</p><pre>&lt;FML&gt;<br><br> &lt;BOX center=&quot;true&quot;&gt;<br>  &lt;TXT value=&quot;The Barcode is: {detector1.data.barcode}&quot;/&gt;<br>  &lt;IMG url=&quot;{camera.data.file}&quot; width=&quot;80&quot;/&gt;<br>  &lt;BTN label=&quot;Open Camera&quot; onclick=&quot;camera.start();&quot;/&gt;<br> &lt;/BOX&gt;<br><br> &lt;CAMERA id=&quot;camera&quot; visible=&quot;false&quot; togglevisible=&quot;true&quot;  controls=&quot;false&quot; onsuccess=&quot;camera.stop()&quot;&gt;<br>  &lt;BARCODE id=&quot;detector1&quot; enabled=&quot;true&quot; onsuccess=&quot;detector1.enabled.set(false);camera.snapshot();&quot;/&gt;<br>  &lt;POS top=&quot;10&quot; right=&quot;10&quot;&gt;<br>   &lt;BTN onclick=&quot;camera.stop();&quot;&gt;<br>    &lt;ICON icon=&quot;close&quot; color=&quot;white&quot;/&gt;<br>   &lt;/BTN&gt;<br>  &lt;/POS&gt;<br> &lt;/CAMERA&gt;<br>&lt;/FML&gt;</pre><p>And the output looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*2WoQj1eXAbIc-zOFeWcxnA.png" /></figure><p>As you can see, the ease of accessing and manipulating hardware datasources is endless! Like in the GET datasource article, TRANSFORMS and DATA widgets can also be used to further manipulate datasources. This includes image transforms when working with CAMERA or FILEPICKER.</p><p>Combining databinding with evaluations, events and other powerful widgets allows a developer to cover all use cases when it comes to manipulating and accessing data.</p><p>I hope you enjoyed this overview. If you have any questions about FML, hardware datasources, updating your application, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></li><li><a href="https://medium.com/@TheOlajos">Follow me on Medium.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language">Visit and Star FML’s Github Repo.</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60b670aeb734" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s New in Flutter Markup Language 1.1.1 and Beyond]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/whats-new-in-flutter-markup-language-1-1-1-and-beyond-11c1b1ebb7d0?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c1b1ebb7d0</guid>
            <category><![CDATA[release-notes]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 17:14:18 GMT</pubDate>
            <atom:updated>2023-02-01T18:46:06.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzu-qPH4BvNofXK4kT9ROg.png" /></figure><h4><strong>This morning we rolled out Flutter Markup Language 1.1.1 public beta.</strong></h4><p>The focus of the dev team from 1.0 to 1.1 was to improve the stability of widgets, simplify the process of writing FML Templates, and enhance the performance of the interpreter for web, mobile, and desktop.</p><p>If you are unfamiliar with FML, it’s use cases, or would like to learn more, you can <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">check out our YouTube channel</a>, <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">visit the GitHub wiki</a>, or <a href="https://fml.dev/">see live examples on fml.dev</a>.</p><p><strong>As of 1.1.1, FML interprets a single template into applications running on:</strong></p><ul><li><strong>MacOS.</strong></li><li><strong>iOS.</strong></li><li><strong>Android.</strong></li><li><strong>Windows.</strong></li><li><strong>Linux.</strong></li><li><strong>Web in all supported browsers.</strong></li></ul><p>Not only has our team made a host of upgrades, but <a href="https://docs.flutter.dev/development/tools/sdk/release-notes/release-notes-3.7.0"><strong>we also have FML 1.1.1 running on Flutter 3.7</strong></a> which offers its own suite of performance enhancements, new Material3 support, and more!</p><p><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases/tag/V1.1.1">You can check out the 1.1.1 release notes here</a>, or read ahead for some specific examples on the main new features!</p><h4>Performance and Application Level Enhancements</h4><p>First and foremost, <strong>we reduced the load size of our Webapp by around 75%</strong>, and implemented deferred loading. This allows for quicker loading times on the initial load of the web application due to the smaller file size needed for startup.</p><p>On top of this, <strong>we have reintroduced the MIRROR service</strong>, which allows an FML developer to specify which templates are to be loaded in and cached on the startup of the application on all platforms. This allows for a smoother transition between pages, and enhances the offline capabilities of FML.</p><p>We have also introduced the <strong>global.xml configuration file. This allows you to specify any widget that is to be accessible, modifiable, and callable via events throughout your entire application.</strong> These widgets can be accessed using {GLOBAL.id.attribute} or {GLOBAL.id.event()}, which allows us to do things such as access Datasources like GET or NFC throughout the whole application, utilize VAR and TRIGGER widgets, and more.</p><p>The final important application level enhancement we have made is the addition of creating local applications windows app. <strong>This allows a user to specify a file:// scheme when connecting to an app, and create apps for testing and templating without the need for a file server.</strong></p><h4><strong>Syntax and Ease of Templating</strong></h4><p>In terms of syntax, we have made a few major improvements. The first and biggest is <strong>the ability to call events specific to attributes using the id.attribute.event() syntax.</strong> Previously, the attribute was passed as a parameter within the brackets, which made for some messy statements when the value of the attribute was lengthy. This also opens up the doors for a host of events that can work on all attributes in the future.</p><p>Second, as hinted upon above, <strong>we have introduced the SCOPE.syntax to access widgets and attributes outside of your Templates scope. </strong>This has allowed for things such as GLOBAL.id, to specify globally accessible widgets, an APPLICATION level of Bindables, and the ability to expand on this readability. This has also removed the need to specify and set global variables and brokers using the double underscore __id.attribute commands, as we will always know where a binding is coming from.</p><h4><strong>Widgets and Events</strong></h4><p>In terms of widgets and events, we have added a few events to preform some interesting operations within a Template, as well as improving some current widget function.</p><p><strong>The main group of events added are the FML injection events id.addchild(), id.addchildren(), id.removechild(), id.removechildren(), id.replacechild(), and id.replacechildren().</strong> These events allow for a user to inject and modify widget trees within a parents, or as individual widgets, from a value of FML widgets. Unlike the initial loading of pages, this happens in real time as the user is viewing the page, and preserves the state of the entire page outside of the widget being acted upon. You can imagine the possibilities of this, but be on the lookout for an article on using these events with data from a GET API call!</p><p><strong>A handful of improvements have been made to widgets</strong> such as SOCKET, SSE, TRANSFORMS, NFC, IMAGE TRANSFORMS, CHECK, RADIO, SELECT, and more! <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/releases/tag/V1.1.1">You can see the entire list in the v1.1.1release notes</a> and documentation.</p><h4>What’s Upcoming For Flutter Markup Language</h4><p>As our focus is always on improvement of stability and performance on all devices, we also try to incorporate new features, and improve the existing ones in FML. Some features that we are currently working on coming down the pipe are:</p><p><strong>FMLPAD</strong> — A new widget that allows us to update FML in real time as we type FML in a side by side window.</p><p><strong>PROTOTYPE and STYLES</strong> — A Configuration that allows for a user to specify the style and attributes for specific widgets, allowing them to be used across the entire application and changed from a single location. This is used to extend THEME.</p><p><strong>FORM and ALARM enhancements</strong> — A complete rework of FORM and ALARM to allow for enhanced auto validation, multiple validation events, custom error messages in each widget that are automatically displayed, new form widgets that act as data containers, JSON support for the auto-built posting body via complete() feature, and more!</p><p><strong>TABLE improvements</strong> — Improvements to the appearance and features of the base TABLE widget, including auto-sorting behavior.</p><p><strong>DEBUG enhancements </strong>— better error messaging for building FML templates such as syntax errors, duplicate id warnings, and more.</p><p>That is just a small list of the features we are working on adding to FML currently. <strong>If you would like to suggest features, or contribute your own, please </strong><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language"><strong>Visit The GitHub</strong></a><strong> and try your hand at adding a new Widget and creating a PR!</strong></p><p>For more information you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></li><li><a href="https://medium.com/@TheOlajos">Follow me on Medium.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language">Visit and Star FML’s Github Repo.</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c1b1ebb7d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quickly Connect, Display, and Transform Network API Data In Your Cross Platform App using Flutter…]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/quickly-connect-and-transform-network-api-data-in-your-cross-platform-app-using-flutter-markup-337ec09f47a9?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/337ec09f47a9</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-mark]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 13:59:51 GMT</pubDate>
            <atom:updated>2023-02-01T14:43:45.619Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quickly Connect, Display, and Transform Network API Data In Your Cross Platform App using Flutter Markup Language</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzu-qPH4BvNofXK4kT9ROg.png" /></figure><p>Today we are going to look at <strong>connecting to and traversing data in your Flutter Markup Language app</strong>! Although there are many supported Datasources, we are going to look at the <strong>REST api Datasource GET, how to bind to and traverse data, passing data to UI widgets to automatically create views such as lists and tables, and transforming data using TRANSFORM widgets.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlRyonqTmta0&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlRyonqTmta0&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/59742fe43747a155ced9c0a4d4185b98/href">https://medium.com/media/59742fe43747a155ced9c0a4d4185b98/href</a></iframe><p>If you are unfamiliar with FML, it’s use cases, or would like to learn more, you can <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">check out our YouTube channel</a>, <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">visit the GitHub wiki</a>, or <a href="https://fml.dev/">see live examples on fml.dev</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BijAXzcYPgcsV_KCgD5fqQ.png" /></figure><p><strong>What we will cover:</strong></p><ul><li><strong>Connecting to a GET Datasource Widget.</strong></li><li><strong>Binding and Traversing JSON and XML data.</strong></li><li><strong>Easily creating UI from your Datasource using the data UI LIST Widget.</strong></li><li><strong>Manipulating database calls using url attributes.</strong></li><li><strong>Transforming live data using TRANSFORM Widgets.</strong></li></ul><p>Although this list covers a very small portion of the possibilities and Datasources available in FML, it should give you a broad understanding of the general usage and functions of Datasources in Flutter Markup Language.</p><p>For deep dives on automatically posting forms, creating posting bodies automatically and manually, and more information on Datasources and how to quickly build applications using FML, <a href="https://medium.com/@TheOlajos">follow us on Medium</a> or <a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">YouTube to catch new articles and videos weekly</a>!</p><p><strong>Lets get started!</strong></p><h3><strong>Setting up a GET Datasource and Traversing Data Structures</strong></h3><p>To begin, you will need your FML app up and running on any device you choose. If you have not done this, check out our Quickstart articles <a href="https://medium.com/@TheOlajos/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525">using NGROK</a> or <a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb">using XAMPP</a>, or our <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Quick-Start-Guide">Quickstart Guide.</a></p><p>For this example, we are going to use the free api “<a href="https://randomuser.me/api/">https://randomuser.me/api/</a>”. This API’s return body is in JSON format, but FML supports both JSON and XML structure for databinding. The Datasources will detect which structure the body is in and the process will be the same.</p><p>Lets take a look at the data returned from the randomuser.me get call:</p><pre>{<br>   &quot;results&quot;:[<br>      {<br>         &quot;gender&quot;:&quot;male&quot;,<br>         &quot;name&quot;:{<br>            &quot;title&quot;:&quot;Mr&quot;,<br>            &quot;first&quot;:&quot;Timothee&quot;,<br>            &quot;last&quot;:&quot;Thomas&quot;<br>         },<br>         &quot;location&quot;:{<br>            &quot;street&quot;:{<br>               &quot;number&quot;:1975,<br>               &quot;name&quot;:&quot;Rue des Cuirassiers&quot;<br>            },<br>            &quot;city&quot;:&quot;Boulogne-Billancourt&quot;,<br>            &quot;state&quot;:&quot;Lozère&quot;,<br>            &quot;country&quot;:&quot;France&quot;,<br>            &quot;postcode&quot;:46879,<br>            &quot;coordinates&quot;:{<br>               &quot;latitude&quot;:&quot;-18.6054&quot;,<br>               &quot;longitude&quot;:&quot;-47.9350&quot;<br>            },<br>            &quot;timezone&quot;:{<br>               &quot;offset&quot;:&quot;+5:00&quot;,<br>               &quot;description&quot;:&quot;Ekaterinburg, Islamabad, Karachi, Tashkent&quot;<br>            }<br>         },<br>         &quot;email&quot;:&quot;timothee.thomas@example.com&quot;,<br>         &quot;login&quot;:{<br>            &quot;uuid&quot;:&quot;ffa3b296-b068-4fa5-8bd3-235a71cd0906&quot;,<br>            &quot;username&quot;:&quot;ticklishduck262&quot;,<br>            &quot;password&quot;:&quot;pooppoop&quot;,<br>            &quot;salt&quot;:&quot;UcyG7Qvb&quot;,<br>            &quot;md5&quot;:&quot;d696229eaeac062ae18df1d9b9bee068&quot;,<br>            &quot;sha1&quot;:&quot;100e1b68aa669be8d1d993d8bc99f63e87984fec&quot;,<br>            &quot;sha256&quot;:&quot;c29656f69ab6cbcb5371ae5f4eb8ed124696b8712a36980e887186a874ed4338&quot;<br>         },<br>         &quot;dob&quot;:{<br>            &quot;date&quot;:&quot;1956-01-25T07:58:50.982Z&quot;,<br>            &quot;age&quot;:66<br>         },<br>         &quot;registered&quot;:{<br>            &quot;date&quot;:&quot;2008-08-18T07:28:44.413Z&quot;,<br>            &quot;age&quot;:14<br>         },<br>         &quot;phone&quot;:&quot;03-07-80-50-47&quot;,<br>         &quot;cell&quot;:&quot;06-21-38-07-41&quot;,<br>         &quot;id&quot;:{<br>            &quot;name&quot;:&quot;INSEE&quot;,<br>            &quot;value&quot;:&quot;1560050243529 65&quot;<br>         },<br>         &quot;picture&quot;:{<br>            &quot;large&quot;:&quot;https://randomuser.me/api/portraits/men/65.jpg&quot;,<br>            &quot;medium&quot;:&quot;https://randomuser.me/api/portraits/med/men/65.jpg&quot;,<br>            &quot;thumbnail&quot;:&quot;https://randomuser.me/api/portraits/thumb/men/65.jpg&quot;<br>         },<br>         &quot;nat&quot;:&quot;FR&quot;<br>      }<br>   ],<br>   &quot;info&quot;:{<br>      &quot;seed&quot;:&quot;040edff4e05cdca9&quot;,<br>      &quot;results&quot;:1,<br>      &quot;page&quot;:1,<br>      &quot;version&quot;:&quot;1.4&quot;<br>   }<br>}</pre><p>As you can see, the repeated element would normally be within “<strong>results</strong>”, and there is the “<strong>info</strong>” element at the same level as results. Knowing the structure of your data is important to set up Databindings.</p><h4>Setting Up and Binding to a GET Datasource Widget</h4><p>First, lets open our template with the &lt;FML&gt; tags and create a GET widget. We will give the GET widget an <strong>id</strong> attribute and the <strong>url </strong>attribute containing our api call.</p><pre>&lt;FML&gt;<br>     &lt;!--Set up an id and provide a url--&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api/&quot;/&gt;<br>&lt;/FML&gt;</pre><p>GET will accept a relative or absolute url, if the url is relative such as <strong>url=“/api”</strong>, the application will make the fully qualified domain call to the domain your FML app is hosted at.</p><p>Next, lets take a look at the outer two elements using a TEXT widget to bind to an attribute and the data from the GET widget. If you are unfamiliar with databinding, you can check out the <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Databinding-Basics">databinding page in the wiki</a>.</p><pre>&lt;FML&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api/&quot;/&gt;<br><br>     &lt;COL&gt;<br>          &lt;!--Binding to the url attribute--&gt;<br>          &lt;TEXT value=&quot;{userdata.url}&quot; color=&quot;red&quot;/&gt;<br>          &lt;!--Binding to the data info and results--&gt;<br>          &lt;TEXT value=&quot;{userdata.data.info}&quot;/&gt;<br>          &lt;TEXT value=&quot;{userdata.data.results}&quot;/&gt;<br>     &lt;/COL&gt;<br><br>&lt;/FML&gt; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9oR2wBE9ZVk4cfcP3MZFw.png" /></figure><p>Remember, to bind to a widgets attribute, the structure is <strong>{id.attribute}</strong>, whereas data, being its own attribute, is <strong>{id.data.element}</strong>. Whenever <strong>{}</strong> are used, they signify a binding. In this case we will bind to results and info elements, as well as display the url attribute’s value on the GET widget.</p><p>Now, we see that the info data isn’t very useful for us, so lets create a <strong>root=“results”</strong> attribute on the GET widget to display only data within the results element.</p><pre>&lt;!--We add the root, this allows our bindings to start within the results element--&gt;<br>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api/&quot; root=&quot;results&quot;/&gt;</pre><p>This will allow the Datasource to start bindings at the “results” element rather than the outer most level of the data. Remember, if the desired root is multiple levels down, you will need to use dot notation from the outer most level of the data structure to specify the root, such as <strong>root=“results.name”</strong>.</p><p>Next, we can access the gender in the same way we did the results, keeping in mind that bindings start at the root <strong>results </strong>using the binding <strong>{userdata.data.gender}</strong>.</p><pre>&lt;FML&gt;<br>     &lt;!--adding the root tag allows the binding to start at the root given--&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api/&quot; root=&quot;results&quot;/&gt;<br><br>     &lt;COL&gt;<br>          &lt;TEXT value=&quot;{userdata.url}&quot; color=&quot;red&quot;/&gt;<br>           &lt;!--we grab the value from the gender element--&gt;<br>          &lt;TEXT value=&quot;{userdata.data.gender}&quot;/&gt;<br>     &lt;/COL&gt;<br><br>&lt;/FML&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*kyBLe3pVMvoFSVKO7A_m5A.png" /></figure><h4>Traversing Data Structures with Databinding</h4><p>Next, lets look at traversing this data. We can do so by using dot notation. Lets grab the value of the users street name using <strong>{userdata.data.location.street.name}</strong>. This simply traverses down the nested datastructure provided by the API.</p><pre>&lt;TEXT value=&quot;{userdata.url}&quot; color=&quot;red&quot;/&gt;<br>&lt;TEXT value=&quot;{userdata.data.gender}&quot;/&gt;<br>&lt;!--we traverse the tree to grab the name of the street using dot notation--&gt;<br>&lt;TEXT value=&quot;{userdata.data.location.street.name}&quot;/&gt;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6iTQJ5NGmqbZaA5r15iQw.png" /></figure><p>As you can see, we are able to access infinitely nested values within a data tree from both XML or JSON, using a root at any level.</p><p>Next, lets look at using the repeated elements to create a visual list UI.</p><h4>Creating a LIST UI from a Datasource</h4><p>First, lets get a few more users from the randomuser api by changing the <strong>url </strong>and grabbing the users first name rather than the gender.</p><pre>&lt;FML&gt;<br>     &lt;!--Add results=4 as an attribute on the url to return more than a single result--&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results=4&quot; root=&quot;results&quot;/&gt;<br><br>     &lt;COL&gt;<br>          &lt;TEXT value=&quot;{userdata.url}&quot; color=&quot;red&quot; root=&quot;results&quot;/&gt;<br>          &lt;!--We grab the users first name for a more useful display--&gt;<br>          &lt;TEXT value=&quot;{userdata.data.name.first}&quot;/&gt;<br>          &lt;TEXT value=&quot;{userdata.data.location.street.name}&quot;/&gt;<br>     &lt;/COL&gt;<br><br>&lt;/FML&gt;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLC2NoGtEqgTBfZGgQ9jDw.png" /></figure><p>As you can see, even though there are multiple elements the binding will automatically select the first one when not given an index. We can select a specific item when not using a Data UI widget by using the <strong>element:Index</strong> notation at the end of our repeated element name. In this case, the element is called <strong>results, </strong>so we can remove the root, or append the index to the data <strong>keyword</strong>.</p><pre>&lt;FML&gt;<br>&lt;!--We remove the root to access the repeated elemt name to supply an index--&gt;<br>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results=4&quot; root=&quot;results&quot;/&gt;<br><br>&lt;COL&gt;<br>&lt;TEXT value=&quot;{userdata.url}&quot; color=&quot;red&quot;/&gt;<br>&lt;!--Grabs the 0th index of repeated item by default--&gt;<br>&lt;TEXT value=&quot;{userdata.data.name.first}&quot;/&gt;<br>&lt;!--Grabs the 3rd index of root element, with no root this would be data.results:3...--&gt;<br>&lt;TEXT value=&quot;{userdata.data:3.location.street.name}&quot;/&gt;<br>&lt;/COL&gt;<br><br>&lt;/FML&gt; </pre><p>Now, we can automatically display every element as its own UI element using a Data UI Widget. Lets remove the COL and its children and create a LIST. Supply the <strong>id </strong>of the datasource to the <strong>data=“”</strong> attribute in the LIST and create an item.</p><pre>&lt;FML&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results=4&quot; root=&quot;results&quot;/&gt;<br>     &lt;!--We supply the id of the datasource to the list--&gt;<br>     &lt;LIST data=&quot;userdata&quot;&gt;<br>          &lt;ITEM&gt;<br>          &lt;/ITEM&gt;<br>     &lt;/LIST&gt;<br>&lt;/FML&gt;</pre><p>Inside the item, lets create a BOX with a border and display a TEXT bound to name. When binding inside a data widget, no id prefix is needed if binding to the source passed to the <strong>data=“”</strong> attribute. This will bind to any data within the widgets scope.</p><pre>&lt;FML&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results=4&quot; root=&quot;results&quot;/&gt;<br>     &lt;LIST data=&quot;userdata&quot;&gt;<br>          &lt;ITEM&gt;<br>               &lt;BOX border=&quot;all&quot; bordercolor=&quot;black&quot; height=&quot;80&quot; width=&quot;100%&quot;&gt;<br>                    &lt;!--We bind to the data passed to the LIST using data. with no ID--&gt;<br>                    &lt;TEXT value=&quot;The name is: {data.name.first}&quot;/&gt;<br>               &lt;/BOX&gt;<br>          &lt;/ITEM&gt;<br>      &lt;/LIST&gt;<br>&lt;/FML&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4Bw8uBYLuluqvgg12EoqA.png" /></figure><p>As you can see, this instantly creates a scrollable list. You can use things like evals, events, attributes, and other UI widgets to dynamically change and update list items, make them interactive, and more!</p><h4>Updating Datasource Calls Using URL Bindings</h4><p>Now, lets manipulate the data by updating the <strong>url</strong> parameters using a SLIDER and databinding.</p><p>First, create a SLIDER with a <strong>value </strong>of 0 to 10, and assign it an initial value of 1.</p><pre>&lt;FML&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results=4&quot; root=&quot;results&quot;/&gt;<br>     &lt;HEADER&gt;<br>          &lt;!--we create a slider with a value--&gt;<br>          &lt;SLIDER id=&quot;resultnum&quot; color=&quot;green&quot; minimum=&quot;1&quot; maximum=&quot;10&quot; divisions=&quot;8&quot; value=&quot;1&quot; width=&quot;300&quot;/&gt;<br>     &lt;/HEADER&gt;<br>     &lt;LIST data=&quot;userdata&quot;&gt;<br>          &lt;ITEM&gt;<br>                &lt;BOX border=&quot;all&quot; bordercolor=&quot;black&quot; height=&quot;80&quot; width=&quot;100%&quot;&gt;<br>                      &lt;TEXT value=&quot;The name is: {data.name.first}&quot;/&gt;<br>                &lt;/BOX&gt;<br>          &lt;/ITEM&gt;<br>     &lt;/LIST&gt;<br>&lt;/FML&gt;</pre><p>Next, add the binding to the SLIDER as a replacement for the results= parameter in the api <strong>url</strong>.</p><pre>&lt;FML&gt;<br>     &lt;!--We bind the value of the slider to the url attribute--&gt;<br>     &lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results={resultnum}&quot; root=&quot;results&quot;/&gt;<br>     &lt;HEADER&gt;<br>          &lt;SLIDER id=&quot;resultnum&quot; color=&quot;green&quot; minimum=&quot;1&quot; maximum=&quot;10&quot; divisions=&quot;8&quot; value=&quot;1&quot; width=&quot;300&quot;/&gt;<br>     &lt;/HEADER&gt;<br>     &lt;LIST.../&gt;<br>&lt;/FML&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xy2oyqXFry_z7R8esPttEA.png" /></figure><p>As you can see, when we move the SLIDER, the GET call is automatically made, and the list rebuilds on success of the GET, reflecting the amount of results set by the SLIDER’s <strong>value</strong>. This automatic updating on url change can be altered using the <strong>autoexecute=“false”</strong> attribute on the Datasource and called using the &lt;<strong>id&gt;.start()</strong> event if desired.</p><h4>Transforming Data Using TRANSFORM Widgets</h4><p>The final piece of the Datasource overview we will look at is creating and binding to TRANSFORM widgets. In this case, we will use the FILTER and CALC Transforms, but there are many more available using Flutter Markup Language!</p><p>Transforms act as direct children of Datasources, and will take affect in whatever order the developer inserts them, returning the transformed data to the parent after each takes affect.</p><p>Using our list template from above, lets add a FILTER transform as a child of GET.</p><pre>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results={resultnum}&quot; root=&quot;results&quot;&gt;<br>  &lt;FILTER id=&quot;f1&quot; filter=&quot;{data.gender} == &#39;male&#39;&quot;/&gt;<br>&lt;/GET&gt;</pre><p>Next we will give the filter an evaluation in the <strong>filter=“”</strong> attribute. If this evaluation returns true, it will add that repeated element to the dataset to be bindindable. If false, it will be excluded from the dataset. The filter assumes the bindable field will be a name within the dataset, and can be traversed as usual using the dot notation. No id prefix is needed as the binding is within the brokers scope.</p><pre>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results={resultnum}&quot; root=&quot;results&quot;&gt;<br>  &lt;FILTER id=&quot;f1&quot; filter=&quot;{data.gender} == &#39;male&#39;&quot;/&gt;<br>&lt;/GET&gt;</pre><p>Now we can see when running the list, although we request 8 results, the filter excludes any where the gender field does not equal male.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxKZQDwWI1KD7GLiDtaZyA.png" /></figure><p>If we include multiple transforms, they will take affect in order given. Lets add a CALC after the FILTER and have it add the maximum age off all of the fields in the male category to all of the datasets as a field called “<strong>maxage</strong>” under “<strong>dob</strong>”.</p><pre>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results={resultnum}&quot; root=&quot;results&quot;&gt;<br>     &lt;FILTER id=&quot;f1&quot; filter=&quot;{data.gender} == &#39;male&#39;&quot;/&gt; <br>     &lt;CALC id=&quot;f2&quot; target=&quot;dob.maxage&quot; operation=&quot;max&quot; source=&quot;dob.age&quot;/&gt;<br>&lt;/GET&gt;</pre><p>Lets add some databindings in our list to display this data.</p><pre>&lt;LIST data=&quot;userdata&quot;&gt;<br>  &lt;ITEM&gt;<br>    &lt;BOX border=&quot;all&quot; bordercolor=&quot;black&quot; height=&quot;80&quot; width=&quot;100%&quot;&gt;<br>      <br>      &lt;!--Create a var to calculate the difference, this can also be done with a transform--&gt;<br>      &lt;VAR id=&quot;difference&quot; value=&quot;={data.dob.maxage}-{data.dob.age}&quot;/&gt;<br>      &lt;TEXT value=&quot;The name is: {data.name.first}&quot;/&gt;<br>      &lt;!--Display the difference--&gt;<br>      &lt;TEXT value=&quot;I am {difference} years younger.&quot;/&gt;<br>      <br>    &lt;/BOX&gt;<br>  &lt;/ITEM&gt;<br>&lt;/LIST&gt;<br></pre><p>And this is our UI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH_y3MMrtMnGqiaMGcQB0Q.png" /></figure><p>Now, if we want access to all levels of data, or different sets of transforms, we can use the DATA widget to nest down. We assign the <strong>id </strong>of the parent Datasource to the <strong>url=“”</strong> of the DATA widget. We can also use the data widget separately and supply the id as the url in the same way. Now we can bind to the unfiltered GET data using <strong>userdata.data</strong>, or the filtered data using the DATA id <strong>filtereddata.data</strong>. We can even pass the url of the <strong>filtereddata </strong>to another DATA widget to nest transforms!</p><pre>&lt;GET id=&quot;userdata&quot; url=&quot;https://randomuser.me/api?results={resultnum}&quot; root=&quot;results&quot;&gt;<br>     &lt;DATA id=&quot;filtereddata&quot; url=&quot;userdata&quot;&gt;<br>         &lt;FILTER id=&quot;f1&quot; filter=&quot;{data.gender} == &#39;male&#39;&quot;/&gt; <br>         &lt;CALC id=&quot;f2&quot; target=&quot;dob.maxage&quot; operation=&quot;max&quot; source=&quot;dob.age&quot;/&gt;<br>     &lt;/DATA&gt;<br>&lt;/GET&gt;</pre><p>DATA widgets can take data from any Datasource, or widgets that supply data such as a SELECT.</p><p>And that’s it for the overview! As you can see at its most basic level, FML makes binding to and manipulating data from any source in any structure simple. To check out binding to Hardware Datasources such as NFC and CAMERA, and using DETECTOR widgets to bind to ML kit information such as barcodes, you can keep a lookout for the next article on hardware Datasource binding.</p><p>I hope you enjoyed this overview. If you have any questions about FML, Datasources, transforming data, binding to data, and more you can:</p><ul><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></li><li><a href="https://medium.com/@TheOlajos">Follow me on Medium.</a></li><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language">Visit and Star FML’s Github Repo.</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337ec09f47a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LAN Cross-Platform Application Using XAMPP and Flutter Markup Language in under 10 Minutes]]></title>
            <link>https://medium.com/@FrameworkMarkupLanguage/lan-cross-platform-application-using-xampp-and-flutter-markup-language-in-under-10-minutes-1b5151cc7525?source=rss-34b40392de0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5151cc7525</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-markup-language]]></category>
            <category><![CDATA[fml]]></category>
            <category><![CDATA[xampp]]></category>
            <dc:creator><![CDATA[Framework Markup Language]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 13:58:23 GMT</pubDate>
            <atom:updated>2023-01-18T15:31:23.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUrENOqUVglpKUO5B4DhxQ.png" /></figure><p><strong>Today, we are going to look at how to get an application up and running on every platform in under 10 minutes (total) using Flutter Markup Language and XAMPP on a LAN connection, no code required. This will be accessible from any device on your local network.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAWwI5nH7Okg&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAWwI5nH7Okg&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FAWwI5nH7Okg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/661175d21605dd467d5599e472bef3fe/href">https://medium.com/media/661175d21605dd467d5599e472bef3fe/href</a></iframe><p><em>Flutter Markup Language is a simple way to build powerful applications. It works across all platforms and is interpreted rather than compiled, allowing you to instantly update and deploy applications on every platform from a single hosted project. For an overview of FML, </em><a href="https://fml.dev/"><em>visit fml.dev</em></a><em>, </em><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki"><em>visit the wiki</em></a><em>, or check out the medium articles </em><a href="https://medium.com/@isaac_66974/an-introduction-to-flutter-markup-language-defed1892458"><em>An Introduction to Flutter Markup Language</em></a><em> and </em><a href="https://medium.com/@isaac_66974/why-not-just-flutter-benefits-and-use-cases-of-flutter-markup-language-5e88aa23aeee"><em>Benefits and Use Cases of Flutter Markup Language.</em></a></p><p><strong>What we will cover:</strong></p><ul><li><strong>Setting up XAMPP for a LAN connection.</strong></li><li><strong>Configuring XAMPP to run an apache http server on your LAN network.</strong></li><li><strong>Serving the Flutter Markup Language (FML) files from the XAMPP apache http server to any device on your local network using your IP address on port 8080.</strong></li><li><strong>Connecting to and running the FML app on web browser over LAN.</strong></li><li><strong>Running the FML app on mobile as an app store application over LAN.</strong></li><li><strong>Running the FML app on desktop as an application over LAN.</strong></li><li><strong>A brief overview of editing and building your own application from the FML server files.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etUI87Wiw3QxrXmmsBcFjQ.png" /></figure><p>The two pieces you will need to do this are <a href="https://www.apachefriends.org/">XAMPP</a>, and a copy of <a href="https://fml.dev/">Flutter Markup Language</a>. For our purposes we are going to be working on a Windows PC and an Android device, but XAMPP and FML work on Linux, Mac and iOS as well. Part 1 will likely differ for Mac and Linux.</p><p><em>Note: This is a solution for quick cross platform development only. Other prerequisites will be required before releasing your app to the public. Your own domain and hosted file server can greatly improve the development experience.</em> <em>A self-compiled copy of FML can automatically open your app without having to link a url. This can also be configured with your own logo, icons, and app store version. Quick start local development on web </em><strong><em>or</em></strong><em> desktop is also possible without external software or file servers. Temporary fully-online development is also possible by using ngrok. </em><a href="https://medium.com/@TheOlajos/online-cross-platform-application-in-under-10-minutes-using-ngrok-and-flutter-markup-language-afb3fdee70cb"><em>A guide to ngrok setup and configuration can be found here.</em></a></p><h3>Part 1: Install and Setup XAMPP</h3><p>With FML being an interpreted language, it requires a file server to serve the application files and templates. If you are familiar with http file serving, you can skip this step and check out the <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki/Backend-server-configuration">Server Configuration Guide</a> for your preferred solution.</p><ol><li>First, you will need to download XAMPP for your hosting platform at <a href="https://www.apachefriends.org/">https://www.apachefriends.org/</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*waKgJFGmdc2IAdid-1EGzg.png" /></figure><p>2. Next you will need to setup XAMPP. Start by launching the installer you’ve just downloaded. Click next and uncheck all of the options other than the base package (unless you are familiar with XAMPP and would like to use its other features) and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*LQIrRgiOZya1dK62pYsURA.png" /></figure><p>3. Take note of the folder it will be saved in, as you will need to access this folder in later steps. Continue to click next until you get to the installation bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*golwtBF1q2nO0SDx8zgItQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*o8WXzaf5RKVT-nbQUQyixQ.png" /></figure><p>4. Windows will prompt you with a Defender Notification. Ensure you check the box<strong> “Public Networks”</strong> and click <strong>“Allow Access”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*q2bNm_vXQOLEcY28vz1vnQ.png" /></figure><p>5. If XAMPP does not open automatically, search for XAMPP in the Windows Bar. <strong>Right click and select “Run As Administrator” on the app called XAMPP Control Panel.</strong> Click yes when prompted to “Allow XAMPP to make changes”. You should see the following window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*3764NnpidQraDLBo1Kx_5A.png" /></figure><p>6. Next we will configure the XAMPP apache server so you can access it from any device in your localnetwork. First we are going to open <strong>apache &gt; config &gt; Apache (httpd.conf)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUZJLtkmQHVJbuoAqxPB4Q.png" /></figure><p>7. The document httpd.conf will open. Ctrl + F search for “<strong>Listen 80”</strong> and replace this line with “<strong>Listen 8080”</strong> and save the document. You can close this window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*5kmRZHjT-rRWaN213rSERQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*-nMgdB2geFYewT0lgIsncA.png" /></figure><p>8. Next, we are going to get the IPv4 address from our local machine. To do this, open the Command Prompt by clicking windows &gt; and searching for Command Prompt. Once the window opens, you will type <strong>“ipconfig”</strong> and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaAprNDWa5CyHE-4xbCXMA.png" /></figure><p><em>note: you can also find your IP address by going to</em> <em>the taskbar, select Wi-Fi network &gt; the Wi-Fi network you’re connected to &gt; Properties. Under Properties, look for your IP address listed next to IPv4 address.</em></p><p>9. Depending on which method you are using to connect to the internet, you will use the IPv4 Address under that section. In our case, we are using wifi, which can be found under “Wireless LAN adapter Wi-Fi 2&quot;. Write down <strong>“http://YOUR_IPv4:8080”</strong>.</p><pre>http://YOUR_IPv4:8080<br><br>in our case:<br><br>http://192.168.3.191:8080</pre><p>10. Next, open <strong>apache &gt; config &gt; Apache (httpd-xampp.conf).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c-8bkxRx5BgknK7-sTyARA.png" /></figure><p>11. The document httpd-xampp.conf will open. You are going to look for this code block in the document:</p><pre>&lt;Directory &quot;C:/xampp/phpMyAdmin&quot;&gt;<br>       AllowOverride AuthConfig<br>       Require local<br>       ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var<br>&lt;/Directory&gt;</pre><p>12. Replace the line <strong>“Require Local”</strong> with <strong>“Require all granted” </strong>and save the document. You can close this window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*3l4SDM8W0nP_aurHT5oMDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uSgJZrQIOmo36X5nlT_Eg.png" /></figure><p>13. The final configuration step, we are going to go to <strong>xampp &gt; config</strong> click on <strong>service and port setting</strong> and change apache Main Port from “<strong>80”</strong> to “<strong>8080”. </strong>Click save on the current (service settings) then previous (configuration of control panel) windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*S1PB68Zn7DRROh4UKH6jeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*q16sV-p5YG9AObucpCbVtA.png" /></figure><p>14. Close and reopen XAMPP Control Panel, remember to right click and choose <strong>“Run As Administrator”</strong> when reopening the control panel.</p><p>15. We are going to click start on the Apache server. Make sure that under ports it says <strong>8080</strong>, and <strong>“status change: running”</strong> is displayed in the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*LxlUPLFW3zMEfWW7EFj5SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*-NL8BrV9LSSee0oOkGW0TQ.png" /></figure><p>16. On your current device as well as your separate device, enter<strong> “http://YOUR_IPv4:8080&quot;</strong> in you browser’s address bar. You should be shown the XAMPP dashboard. Ensure this works both on your local machine, as well as on an alternate device <strong>that is connected to the same network as your device running XAMPP.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSV528cECMtWpK-nAmRhYQ.png" /></figure><p><em>Note: If this is not working, try typing in </em><a href="http://localhost/"><em>http://localhost:80</em></a><em> in the device running XAMPP. If you see the page above, the port is not set up correctly. If you type in </em><a href="http://localhost/"><em>http://localhost:80</em></a><em>80</em> <em>and see a page, ensure you have your devices correct IP address (above). If this is correct, check your firewall settings to ensure port 8080 is open to the firewall. There are plenty of resources to ensure this port is open and listening on both PC and Mac. </em><strong><em>Do not proceed to the following steps if you cannot connect to the XAMPP dashboard.</em></strong></p><h3>Part 2: Install Flutter Markup Languages Server Files</h3><h4>Install and Setup FML for all devices in XAMPP.</h4><p>These steps will show you how to put the FML server files on your XAMPP apache server running on your local network. All devices and platforms on your network can be linked from here.</p><ol><li><a href="https://fml.dev/downloads/server.zip">Click here to download the FML server.zip file.</a></li></ol><p>2. Once downloaded, you will need to navigate to the filepath where XAMPP is installed. We are going to open up the file within the xampp folder called <strong>“htdocs”, </strong>ours is located at “C:\xampp\htdocs”, and delete all of the contents within.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9spEfzsZnLle09ghWKF4kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o4GUmeDke7sefd2itSfwfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8ZY442d3LGImT_uvlMf1g.png" /></figure><p>3. <strong>Extract the fml server.zip files</strong> from Step 1 to the “htdocs” folder. Ensure they are directly in the htdocs folder not in another subfolder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWlwF3-Zs8998o13TDaq-g.png" /></figure><p>4. Finally Stop and Restart the XAMPP apache server from the XAMPP control panel. Record the address from Step 1.9 as it will be what you use to connect to the FML app on all of the devices running on your network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*yIIEdRQF2Z5t6OqjVnV0uQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*767VtzEaXuyJ9V3WI6-waQ.png" /></figure><pre><br>http://YOUR_IPv4:8080<br><br>in our case:<br><br>http://192.168.3.191:8080</pre><h3>Part 3: Running Your FML App on Every Device and Platform</h3><h4>Run FML in Web.</h4><ol><li><strong>Enter the IPv4 address recorded from 1.8 into any browser address bar on any device connected to your network.</strong> After a brief loading screen you should see the FML default app! Your app is now running in web!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGHy0b9Os-aLghe3juXpBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQhkzUPum1IOd6tOtz-_Uw.png" /></figure><h4>Install the FML app from the app store on your device and link your app.</h4><p>5. Download the app called Flutter Markup Language on your device from the <a href="https://play.google.com/store/apps/details?id=co.appdaddy.fml&amp;hl=en&amp;gl=US">play store for android</a>, or from the <a href="https://apps.apple.com/ca/app/flutter-markup-language/id1629916140">app store for iOS</a>. This will allow you to connect to your http file server and render your application.</p><p>6. Open the application. You should be prompted with the following screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YtOS1KYIjxY7mZNim5ofug.png" /></figure><p>7. Click the add app button. You will need to supply it with a name for your app, in this case we will call it sample app, as well as the same IP address from step 1.9 that you entered into your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDSPh07P6RZMiT9lynzsKg.png" /></figure><p>8. Click connect and click the icon that has added your application! There you have it, the same app running in mobile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdAqWL71LFyX-I03GXyrmw.png" /></figure><p><em>Note: Ensure that your device is on the same network as the one running XAMPP and that the apache server is started. This can be confirmed by entering the same IPv4 address into the browser.</em></p><p><em>If you do not see the Application Name you entered, it is most likely that the config.xml has a preset application name. We will cover changing the config in part 3.</em></p><h4>Download and link the FML desktop application</h4><p>The steps here are going to be very similar to installing for mobile.</p><p>9. Download and launch the fml.exe app for <a href="https://fml.dev/downloads/windows.zip">windows</a> or <a href="https://fml.dev/downloads/macos.zip">macOS.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*RKbsDpTjQ2cv4_i1FLco7Q.png" /></figure><p>10. Once you have installed the application, follow steps 6–8 from the mobile section to connect your app. Tap the icon to open your linked app!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ia-igRlgz6cJlGw_Inq-9w.png" /></figure><p><em>Note: Ensure that your device is on the same network as the one running XAMPP and that the apache server is started. This can be confirmed by entering the same ip address into the browser.</em></p><p><em>If you do not see the Application Name you entered, it is most likely that the config.xml has a preset application name. We will cover changing the config in part 3.</em></p><h4>There you have it, a custom application running on all platforms in under 10 minutes!</h4><h3>Part 3: Building Your App</h3><p>FML comes with a basic app that can be edited and removed. You can see a large <a href="https://fml.dev/#/assets/templates/examples/examples.xml">library of functional examples</a>, the <a href="https://fml.dev/">FML website</a>, and <a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">the wiki</a> to help your development. The app starts on the main.xml file in the templates folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*heW3GxUx41-D57PbuoETOw.png" /></figure><p>To edit your application you can use any text editor. Once saved, simply refresh the window on any device.</p><p>If you would like to create a new file for the home page that is not named main.xml, you can change the HOME_PAGE to your desired filepath in config.xml in the main directory of “FML_APP”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJfkzxfF7TXUxHtxehYYQg.png" /></figure><p>For more information on how to build out your application and using FML, you can:</p><ul><li><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit the fml wiki.</a></li><li><a href="https://medium.com/@TheOlajos/the-flutter-counter-app-using-flutter-markup-language-in-18-lines-e58f7310a635">Check out the flutter counter app clone guide on Medium.</a></li><li><a href="https://discord.gg/NEXAXmNXTZ">Chat with other Flutter Markup Language devs on our discord.</a></li><li><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to our Youtube channel</a> for upcoming tutorials!</li></ul><p>Remember, when moving to production or if you have not set up your own file server:</p><ul><li>This IP works only on your local network, once development is complete you will need your own domain name, file server.</li><li>Connecting the app through the FML app works great and can be used in production! For a more custom feel, the source code can be downloaded and compiled. This can be customised with the domain linked automatically, your own name, logos, and app store downloads!</li><li>Be on the lookout for a guide on each of these, as well as setting up a serverless api using FML and Firebase.</li><li>If you would like to set up a permanent server, you can look at <a href="https://cloud.google.com/compute/docs/tutorials/basic-webserver-apache">googles cloud guide with apache</a>, or set up a temporary online file server using ngrok.</li></ul><p><a href="https://discord.gg/NEXAXmNXTZ">Chat with us on Our Discord.</a></p><p><a href="https://github.com/AppDaddy-Software-Solutions-Inc/Flutter-Markup-Language/wiki">Visit The Wiki.</a></p><p><a href="https://www.youtube.com/channel/UC96zHGCBQT_yklB1cKgR0qQ?sub_confirmation=1">Subscribe to Our YouTube Channel.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5151cc7525" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>