<?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[Pixela - Medium]]></title>
        <description><![CDATA[We are a creative innovation agency that specializes in solving complex problems with the use of curiosity and technology. - Medium]]></description>
        <link>https://medium.com/pixela-gt?source=rss----9d2c9bce75f7---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Pixela - Medium</title>
            <link>https://medium.com/pixela-gt?source=rss----9d2c9bce75f7---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:05:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/pixela-gt" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Flusmic 2.0.0 released]]></title>
            <link>https://medium.com/pixela-gt/flusmic-2-0-0-released-bd1cc5ce9296?source=rss----9d2c9bce75f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/bd1cc5ce9296</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[prismic]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Pablo]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 17:46:59 GMT</pubDate>
            <atom:updated>2020-06-12T17:46:59.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8C26h_PqOJBxa0QU4eM8sw.png" /></figure><p>Hello everybody, today I’m excited to share with you some news about Flusmic. For those who don’t know, Flusmic is a little package to integrate Prismic.io into any Flutter app. If you want to know more, you can check our previous post about this powerful combination.</p><p><a href="https://medium.com/pixela-gt/manage-your-app-content-with-flutter-and-prismic-io-3e3e4d777c3">Manage your app content with Flutter and Prismic.io</a></p><p>I know that we haven’t been able to continue the Prismic.io + Flutter series, but there are plenty of good reasons. I’m proud to present to you a new Flusmic version, with tons of new features, thanks to the hard work of all member of the Pixela team.</p><p><a href="https://pub.dev/packages/flusmic">flusmic | Flutter Package</a></p><h3>What’s new on 2.0.0?</h3><p>The first (and major) change is the support for Dart-only. 🎉 The old structure didn’t let us integrate Flusmic into Dart projects but now we can easily add it to both Dart and Flutter.</p><p>After that clarification, here are a couple of other new things in 2.0.0:</p><h4>Wiki and documentation:</h4><p>A brand new wiki, with (a lot) of info of how to use Flusmic: <a href="https://github.com/PixelaGt/flusmic/wiki">https://github.com/PixelaGt/flusmic/wiki</a></p><h4>Predefined models</h4><p>We now have a couple of type models that let you create a custom class to handle your data in a better way.</p><p>Getting started with this new models is easy with the help of json_serializable and freezed packages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4bdb4f9d4d5e06a40a51abcc820bb06/href">https://medium.com/media/e4bdb4f9d4d5e06a40a51abcc820bb06/href</a></iframe><h4>Rich Text support:</h4><p>Full Rich Text support by using our new Richable data class:</p><pre><em>//Can be an Embed Text, Embed Image or Web Embed.</em><br>List&lt;Richable&gt; richTextField;</pre><h4>Multiple link type support:</h4><p>There are many types of links in Prismic.io, but we now have a proper way to handle them.</p><pre><em>//Can be a Media, DocumentReference or Weblink.</em><br>List&lt;Linkable&gt; linkField;</pre><p>If you want to know more about about Rich Text, Links and new model structure, check the<a href="https://github.com/PixelaGt/flusmic/wiki/Custom-data"> custom data wiki</a> section.</p><h3>Flusmic UI</h3><p>Another big change. In addition to the Flusmic package, we’ve created a brand new flusmic_ui package to use Flusmic more easily in Flutter apps specifically.</p><p><a href="https://pub.dev/packages/flusmic_ui">flusmic_ui | Flutter Package</a></p><p>What does Flusmic UI do? Well, besides including all Flusmic features, we can expect to find some interesting widgets to build our apps:</p><h4>FlusmicRichText</h4><p>2.0.0 introduces Rich text support, it was more than sure that we were going to create a widget for this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8165fd33fa85d2d083debd9057b15309/href">https://medium.com/media/8165fd33fa85d2d083debd9057b15309/href</a></iframe><p>By default, FlusmicRichText makes use of TextTheme in your app, but you can customize each text style individually.</p><pre>FlusmicRichText(richFields, <br>  paragraphStyle: TextStyle(...), <br>  headline1Style: TextStyle(...)<br>);</pre><p>Currently,FlusmicRichText only handles Text and Image, in further updates we will add support for lists and embedded items.</p><h4>FlusmicBuilder</h4><p>This widget was already in the original Flusmic package, its main gold is to build widgets depending on Flusmic fetching status.</p><p>We made some improvements in this widgets and fixed some issues.</p><p>Here’s how you can use it in combination with FlusmicRichText:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6f4b86b0d03282ddf5459c169ec313e/href">https://medium.com/media/d6f4b86b0d03282ddf5459c169ec313e/href</a></iframe><p>You can check the <a href="https://github.com/PixelaGt/flusmic/wiki/Available-widgets">available widget</a> section in our wiki to know more about this new Flusmic widgets.</p><p>And that’s it, we’ll be working on new and exciting features to add in the future and if you have any trouble or want to help grow Flusmic, here is the repo:</p><p><a href="https://github.com/PixelaGt/flusmic">PixelaGt/flusmic</a></p><p>See you soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd1cc5ce9296" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pixela-gt/flusmic-2-0-0-released-bd1cc5ce9296">Flusmic 2.0.0 released</a> was originally published in <a href="https://medium.com/pixela-gt">Pixela</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage your app content with Flutter and Prismic.io]]></title>
            <link>https://medium.com/pixela-gt/manage-your-app-content-with-flutter-and-prismic-io-3e3e4d777c3?source=rss----9d2c9bce75f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/3e3e4d777c3</guid>
            <dc:creator><![CDATA[Pablo]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 15:01:01 GMT</pubDate>
            <atom:updated>2020-04-24T15:01:00.918Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvqLTrFw9BxIGoUEA5H7oQ.png" /></figure><p>There are many ways to provide content for our apps and websites, some of these tools like a Custom API, a Firebase backend, or our own CMS, allow us to manage content in very diverse ways.</p><p>One of the most popular CMS types right now, are headless CMS. For those of you who don’t know what a headless CMS is, It is a content management service that can be acceded through an API or SDK. One of its primary functions is to store and provide easy access to our content for any interface that wants to consume that information. It is commonly used to create unified information platforms. From a single place, you can provide content that will be used by a website or mobile app.</p><h3>Prismic.io</h3><p>Prismic.io is one of those headless CMS but not just one of the bunch. Prismic.io is a really advantaged platform, with functions like: multi-language support, document history, dynamic fields, a great community and many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xF9d_2wysV-bnvtJBLLsDA.gif" /></figure><p>More about <a href="https://prismic.io/">Prismic.io here</a></p><h3>Flutter</h3><p>Is a platform to create beautiful and native applications using the same base code. Flutter has positioned itself as a must-to-use platform today, to create applications (mobile, desktop and web) in record time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*bYuD5OBj28zyea3-K2bdHQ.gif" /></figure><p>More about <a href="https://flutter.dev/">Flutter here</a></p><h3>Introducing: Flusmic</h3><p>Now, Is it a good idea to use this two together? Of course! We can build really beauty and simple apps with a lot of content at our disposal. The Pixela team has been working really hard to make such integration easier and we’re glad to introduce our <a href="https://github.com/PixelaGt/flusmic">integration</a> of Prismic.io for Flutter.</p><h3>What will we build?</h3><p>We will build a simple app to show the content of a simple document from Prismic.io. For practice purposes, we will use an already created Flusmic repository, but it will work with any other repository.</p><h3>¿How do I start?</h3><p>First step: create a account in Prismic.io. Also, we need to setup all the necessary tools to work with Flutter. Here are some useful tools to get started.</p><p><a href="https://prismic.io/signup">https://prismic.io/signup</a></p><p><a href="https://flutter.dev/docs/get-started/install">https://flutter.dev/docs/get-started/install</a></p><h3>Working with Flusmic</h3><p>We will work on this simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GS-jHvnZPGeO5LdsJQl3OQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpDDczfWAlAM2Xm8Tv29vQ.jpeg" /><figcaption>Flusmic quicksample</figcaption></figure><p>So, first, let’s start with a new Flutter project:</p><pre>flutter create flusmic_quickstart</pre><p>Now, let’s add Flusmic to dependencies:</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  flusmic: ^1.1.0</pre><p>Then, update packages and we will be ready to start:</p><pre>flutter pub get</pre><p>Now if you run the project you will see the classic example app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wg_LSkJLZPpqM78Ga94YwQ.jpeg" /></figure><p>We can replace everything in our main.dart since we will not use what&#39;s inside.</p><p>Now, we will create our entry widget.</p><pre>void main() =&gt; runApp(FlusmicQuickstartApp());<br>​<br>class FlusmicQuickstartApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(title: &#39;Flusmic Quickstart Sample&#39;, home: HomePage());<br>  }<br>}</pre><p>As you might notice, this widget has a HomePage which is where we are going to work. Let’s create it</p><pre>class HomePage extends StatefulWidget {<br>  @override<br>  _HomePageState createState() =&gt; _HomePageState();<br>}<br>​<br>class _HomePageState extends State&lt;HomePage&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Container();<br>  }<br>}</pre><p>It’s time to start wit Flusmic. There are 2 ways to work with it, in this first guide we will use the main Flusmic class which is the one that make all the necessary requests. In further articles we will explore how to work with widgets directly.</p><p>For now, we’ll create a new Flusmic object instance in our HomePageState</p><pre>final Flusmic flusmic =<br>      Flusmic(prismicEndpoint: &#39;https://flusmic.cdn.prismic.io/api/v2&#39;);</pre><p>Also, let’s include a Result object to store our data.</p><pre>Result result;</pre><p>Now, we’ll focus on build what we will see. It will have two parts:</p><ol><li>If hasn’t loaded our result yet, it will show a progress indicator.</li><li>If loaded, it will show a simple text in the center of the screen with the first result of our request.</li></ol><p>For that, we will use our result object and check its nullability. If it&#39;s null, means that the result hasn&#39;t loaded yet.</p><pre>@override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: Text(&#39;Flusmic sample&#39;)),<br>      body: result != null<br>          ? Center(child: Text(result.results.first.data.toString()))<br>          : Center(child: CircularProgressIndicator()),<br>    );<br>  }</pre><p>result.results.first.data is a json with our document data.</p><p>Ok, now that we are almost ready, the only remaining thing is to make our request. For this example, we will use the root document of the repository, calling getRootDocument().</p><p>Let’s create a new method which will get the result and save it in our result variable:</p><pre>void getResult() async {<br>  final root = await flusmic.getRootDocument();<br>  setState(() =&gt; result = root);<br>}</pre><p>And then we will call it in our initState method to execute on start.</p><pre>@override<br>void initState() {<br>  super.initState();<br>  getResult();<br>}</pre><p>The final code looks like this:</p><pre>import &#39;package:flusmic/flusmic.dart&#39; hide Text;<br>import &#39;package:flutter/material.dart&#39;;<br>​<br>void main() =&gt; runApp(FlusmicQuickstartApp());<br>​<br>class FlusmicQuickstartApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(title: &#39;Flusmic Quickstart Sample&#39;, home: HomePage());<br>  }<br>}<br>​<br>class HomePage extends StatefulWidget {<br>  @override<br>  _HomePageState createState() =&gt; _HomePageState();<br>}<br>​<br>class _HomePageState extends State&lt;HomePage&gt; {<br>  final Flusmic flusmic =<br>      Flusmic(prismicEndpoint: &#39;https://flusmic.cdn.prismic.io/api/v2&#39;);<br>​<br>  Result result;<br>​<br>  @override<br>  void initState() {<br>    super.initState();<br>    getResult();<br>  }<br>​<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: Text(&#39;Flusmic sample&#39;)),<br>      body: result != null<br>          ? Center(child: Text(result.results.first.data.toString()))<br>          : Center(child: CircularProgressIndicator()),<br>    );<br>  }<br>​<br>  void getResult() async {<br>    final root = await flusmic.getRootDocument();<br>    setState(() =&gt; result = root);<br>  }<br>}</pre><p>And the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*ib5REhbE5Due983F9v2ckQ.gif" /></figure><p>A little clarification: If you see an error related with Text class, it&#39;s because Flusmic has a Text class that might cause conflicts with Flutter Text widget. For that, there are 2 solutions:</p><p>If you don’t want to use Text class from Flusmic, you can hide it:</p><pre>import &#39;package:flusmic/flusmic.dart&#39; hide Text;</pre><p>If you do want to use it, you can rename Flusmic dependency:</p><pre>import &#39;package:flusmic/flusmic.dart&#39; as fl;<br>​<br>final fl.Flusmic flusmic =<br>    fl.Flusmic(prismicEndpoint: &#39;&#39;);</pre><p>That’s it for today, we will be covering more about how to work with Flusmic, the possibilities of the Prismic.io + Flutter combo and some tips and ways to integrate Flusmic with other amazing packages like Bloc and Provider.</p><p>You can find the source code of all of our articles <a href="https://github.com/PixelaGt/flusmic-samples">here</a>.</p><p>See you around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e3e4d777c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pixela-gt/manage-your-app-content-with-flutter-and-prismic-io-3e3e4d777c3">Manage your app content with Flutter and Prismic.io</a> was originally published in <a href="https://medium.com/pixela-gt">Pixela</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>