<?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 chukwudumebi on Medium]]></title>
        <description><![CDATA[Stories by chukwudumebi on Medium]]></description>
        <link>https://medium.com/@chukwudumebiii?source=rss-5af13d5abcba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MestrU-fqLM0xkdEnGMeBg.jpeg</url>
            <title>Stories by chukwudumebi on Medium</title>
            <link>https://medium.com/@chukwudumebiii?source=rss-5af13d5abcba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chukwudumebiii/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[Machine Learning, Step by Step: From Raw Data to a Model You Can Trust]]></title>
            <link>https://medium.com/@chukwudumebiii/machine-learning-step-by-step-from-raw-data-to-a-model-you-can-trust-c88e7ebff36a?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c88e7ebff36a</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[begineers-guide-ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 21:24:19 GMT</pubDate>
            <atom:updated>2026-12-01T21:24:19.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0yyyKUbvMSRJeqy0H_d3w.png" /><figcaption><strong>Machine learning workflow: From loading the data to model evaluation.</strong></figcaption></figure><p>All my life I have been in the mobile development space. I know screens, buttons, APIs and the satisfying moment when an app finally runs on a real phone. Then I started the Applied A.I. Solutions Development program at George Brown Polytechnic, and suddenly I was in a very different world. To be clear, I am not leaving mobile. I am still very much a mobile developer; I am just broadening my skill set, so the apps I build can get smarter too.</p><p>To be honest, at first everything came to me at once. Classification, regression, random forests, cross-validation, pre-processing. I kept asking myself: how does all of this fit together? When do I use which model? Why does my code run but give me a terrible score?</p><p>What finally helped was realizing that machine learning is not a pile of unrelated tricks. It is a process. The same steps, in the same order, almost every time. Once I could see the path, each new term had a place to live.</p><p>This article is that path, written for anyone who feels the way I felt in week one. Take a breath. We will go one step at a time.</p><h3>The big picture</h3><p>Machine learning means a computer learns a pattern from past examples so it can make a guess about a new one. Instead of writing the rules yourself, you show it thousands of examples and let it find the rules.</p><p>The first question in any project is: what kind of answer am I predicting?</p><h3>a. Regression</h3><p>Predicts a number.</p><ul><li>Example: What will this house sell for?</li><li>The answer looks like: $612,000</li><li>How we judge it: how far off the number is</li></ul><h3>b. Classification</h3><p>Predicts a category.</p><ul><li>Example: Is this email spam or not?</li><li>The answer looks like: “spam” or “not spam”</li><li>How we judge it: how often the label is right</li></ul><p>That one question decides which models and which scores make sense. If the answer is a number, it is regression. If it is a label from a fixed list, it is classification.</p><p>I will use one running example throughout: <strong>predicting house prices</strong>, a regression problem. Whenever classification works differently, I will say so.</p><p>Here is the whole process at a glance:</p><ol><li>Load the dataset</li><li>Get to know what it contains</li><li>Preprocess it: remove weak columns, fill gaps, turn text into numbers</li><li>Split it into training and test sets</li><li>Give it to a model, starting with a baseline</li><li>Check the model with cross-validation</li><li>Tune it with grid search</li><li>Evaluate it, once, on the test set</li></ol><h3>Step 1: Load the dataset (the easy part, enjoy it)</h3><p>Everything starts with getting the data into your program. Most course datasets arrive as a CSV file, which is just a spreadsheet saved as plain text. In Python, the <strong>pandas</strong> library reads it into a <strong>DataFrame</strong>: a table with rows and columns, like a spreadsheet you can control with code.</p><p>In the house example, each <strong>row</strong> is one house sale. Each <strong>column</strong> is one fact about it: size, number of bedrooms, neighbourhood, year built. One special column holds the answer we want to predict, the sale price. That column is called the <strong>target</strong>. All the other columns are <strong>features</strong>, the clues the model will use.</p><p>The first decision happens right here: which column is the target? Get that wrong and nothing after it makes sense.</p><h3>Step 2: Know what the dataset contains (first date, no judgement yet)</h3><p>This is the step I used to rush, and it is the one that saves the most time later. Before changing anything, just look. I ask five questions:</p><ol><li><strong>How big is it?</strong> How many rows and columns. A few hundred houses behave very differently from a few hundred thousand.</li><li><strong>What type is each column?</strong> Numbers (size, price) or text (neighbourhood, roof style). Text columns will need converting later.</li><li><strong>What is missing?</strong> Count the empty cells in each column. Some columns are almost complete; others are mostly blank.</li><li><strong>What does the target look like?</strong> For house prices, most sales sit in a normal range, with a few mansions far above. Those extreme values, called <strong>outliers</strong>, can pull a model off course.</li><li><strong>Does anything look strange?</strong> A house built in the year 2207, or a price of zero, usually means a typing error in the data.</li></ol><p>I write my answers down before moving on. That short list becomes my plan for the next step.</p><h3>Step 3: Preprocessing (where your weekend quietly goes)</h3><p>Models only understand complete columns of numbers. Real data is never that. <strong>Preprocessing</strong> is everything you do to turn the raw table into something a model can learn from. It is not glamorous, but it decides most of your result.</p><h3>Remove columns with too many missing values</h3><p>If a column is mostly empty, say a “pool quality” column where 95% of houses have no value, there is little to learn from it. Filling in 95% of a column means the model learns your guesses, not the data. A common rule of thumb is to drop columns above a chosen threshold of missing values, for example more than half. The exact cut-off is a judgement call, so I note why I picked mine.</p><p>One honest caveat: sometimes empty means something. A blank pool quality usually means the house has no pool. In that case, you can keep the information as a simple yes/no column, “has pool”, instead of throwing it away.</p><h3>Fill the gaps that remain</h3><p>For columns with only a few blanks, fill them in, a step called <strong>imputation</strong>:</p><ul><li><strong>Numbers:</strong> fill with the <strong>median</strong>, the middle value. It is safer than the average, because a few mansions do not drag it upward.</li><li><strong>Text categories:</strong> fill with the most common value, or with a label like “Unknown”.</li></ul><h3>Turn text into numbers: encoding</h3><p>A model cannot read “Riverdale” or “Excellent”. Text columns have to become numbers, and how you do it depends on the kind of category.</p><h4>a. Nominal categories</h4><p>Categories with no natural order.</p><ul><li>House example: neighbourhood, roof style</li><li>How to encode: <strong>one-hot encoding</strong>, one new yes/no column per category</li><li>Why: numbering them would tell the model one neighbourhood is “more” than another, which is false</li></ul><h4>b. Ordinal categories</h4><p>Categories with a clear order.</p><ul><li>House example: kitchen quality, from poor to fair, good and excellent</li><li>How to encode: numbers in order, 1, 2, 3, 4</li><li>Why: the order carries real meaning the model should use</li></ul><p>The classic beginner mistake is giving nominal categories numbers like 1, 2, 3. The model then thinks neighbourhood 3 is three times neighbourhood 1. One-hot encoding avoids that.</p><h3>Scale the numbers</h3><p>House size runs into the thousands of square feet; bedrooms run from 1 to 6. Some models treat bigger numbers as more important simply because they are bigger. <strong>Scaling</strong> puts every feature on a comparable range so none dominates by accident. Linear models and distance-based models need it. Tree-based models, like random forests, do not.</p><h3>One rule that protects everything</h3><p>Any step that <em>learns</em> from the data, like calculating a median or a scaling range, must learn from the training data only. That is why the next step, the split, really belongs at the start of preprocessing. Dropping a nearly empty column is safe either way. Calculating a median on the full dataset is not, as Step 4 explains.</p><h3>Step 4: The train-test split (no peeking, seriously)</h3><p>Imagine studying for an exam using the exact questions that will be on it. You would score 100%, and it would tell you nothing about what you actually know. Models are the same.</p><p>So we split the data in two:</p><ul><li><strong>Training set</strong>, usually about 80% of the rows. The model learns from these.</li><li><strong>Test set</strong>, the remaining 20% or so. Locked away. The model never sees these houses until the very end.</li></ul><p>The test set is our stand-in for the real world: new houses the model has never met. Its score is the honest answer to “will this work?”</p><p><strong>Data leakage</strong> is what happens when information from the test set sneaks into training. A common way: filling missing values with the median of the <em>whole</em> dataset, test houses included. The model has now indirectly seen the test data. The score looks great, then falls apart on genuinely new houses. That is why I split first and let every learning step use the training rows only.</p><p>Two small habits help:</p><ul><li><strong>Fix the random seed.</strong> The split is random. Setting a seed makes it the same every run, so results can be compared and repeated.</li><li><strong>For classification, keep the proportions.</strong> If only 5% of emails are spam, a <strong>stratified</strong> split makes sure both sets contain about 5% spam, not 1% in one and 9% in the other.</li></ul><h3>Step 5: Give it to the model (finally, the part from the movies)</h3><p>This is the step everyone pictures when they hear “machine learning”, and it turned out to be one of the shortest. The model receives the training features and the training answers, and works out how they relate. That is called <strong>fitting</strong> or <strong>training</strong> the model.</p><h3>Start with a baseline</h3><p>Before any clever model, build a dumb one. For house prices: predict the median price for every house, whatever its size. For classification: always predict the most common label.</p><p>It sounds pointless, but it gives you a number to beat. If a random forest is only slightly better than “always guess the median”, it has not learned much, however impressive it sounds.</p><h3>Which model when?</h3><p>This was my biggest question in week one. There is no single best model, but there are good starting points:</p><h4>a. Linear regression (regression)</h4><p>Draws the best straight-line relationship between features and price. Reach for it when you want a fast, explainable first model.</p><h4>b. Logistic regression (classification)</h4><p>Adds up weighted evidence and turns it into a probability, for example a 0.92 chance of spam. Reach for it when you want a fast, explainable first classifier.</p><h4>c. Decision tree (both)</h4><p>Asks a chain of yes/no questions: over 2,000 sq ft? Built after 2000? Reach for it when you need to show exactly how a decision was made.</p><h4>d. Random forest (both)</h4><p>Builds hundreds of slightly different trees and averages their answers. Reach for it when you want strong accuracy on messy table data with little fuss.</p><h4>e. Gradient boosting (both)</h4><p>Builds trees one after another, each fixing the last one’s mistakes. Reach for it when you want top accuracy and have time to tune it.</p><h4>f. K-nearest neighbours (both)</h4><p>Finds the most similar past examples and copies their answer. Reach for it on small datasets where “similar things behave alike” holds.</p><p>My practical rule: start simple, then try something stronger, and keep whichever earns its complexity.</p><h3>Overfitting and underfitting</h3><p>The central tension in the whole subject:</p><ul><li><strong>Overfitting:</strong> the model memorized the training houses, noise included. Brilliant on training data, poor on new houses. A single deep decision tree does this easily.</li><li><strong>Underfitting:</strong> the model is too simple to catch the real pattern. Poor everywhere.</li></ul><p>The goal is the middle: a model that learned the pattern, not the examples. The next two steps are how we find it.</p><h3>Step 6: Cross-validation (five exams instead of one)</h3><p>We have locked the test set away. So how do we compare models, or check that one is not overfitting, without peeking at it?</p><p>The answer is <strong>cross-validation</strong>. Here is how it works with 5 folds, the most common choice:</p><ol><li>Cut the training data into five equal parts, called <strong>folds</strong>.</li><li>Train the model on four folds and score it on the fifth.</li><li>Repeat five times, so each fold takes one turn as the scoring set.</li><li>Average the five scores.</li></ol><p>Every house gets used for both learning and checking, just never at the same time. And instead of one score that might be lucky or unlucky depending on the split, you get five. If the five scores are close together, the model is stable. If they swing wildly, something is fragile, often too little data or overfitting.</p><p>Cross-validation is how I compare the baseline, linear regression and a random forest fairly: same folds, same scoring, side by side.</p><h3>Step 7: Grid search (make tea, this takes a while)</h3><p>Every model has settings you choose before training. These are called <strong>hyperparameters</strong>. For a random forest: how many trees, and how deep each tree may grow. The defaults are a reasonable guess, but rarely the best for your data.</p><p><strong>Grid search</strong> finds better settings by brute force. You list a few options for each setting, for example 100, 300 or 500 trees, and a maximum depth of 5, 10 or unlimited. Grid search tries every combination: here, 3 × 3 = 9 of them.</p><p>The key detail is how each combination is scored: with cross-validation from Step 6. So 9 combinations × 5 folds means 45 small training runs. That is why grid search can be slow, and why I keep the grid small at first and widen it only around the settings that look promising.</p><p>At the end, grid search reports the winning combination and retrains the model with it on the full training set. This is how you push past the baseline to a more optimized result. But it is still only judged on training data. The real verdict comes next.</p><h3>Step 8: Evaluation (deep breath, moment of truth)</h3><p>Now, and only now, the model meets the test set. Once. It predicts prices for houses it has never seen, and we compare those predictions with the real prices.</p><p>The score you use depends on the kind of problem.</p><p><strong>For regression (house prices):</strong></p><ul><li><strong>MAE (mean absolute error):</strong> on average, how many dollars off the prediction is. Easy to explain: “my model is off by about this much per house.”</li><li><strong>RMSE (root mean squared error):</strong> similar, but punishes big misses more heavily. Useful when one huge error is worse than several small ones.</li><li><strong>R²:</strong> how much of the variation in prices the model explains, from 0 to 1. Closer to 1 is better.</li></ul><p><strong>For classification (spam or not):</strong></p><ul><li><strong>Accuracy:</strong> the share of predictions that are correct. Misleading when classes are uneven: if 95% of emails are not spam, always guessing “not spam” scores 95% while catching nothing.</li><li><strong>Precision:</strong> of everything the model flagged as spam, how much really was spam?</li><li><strong>Recall:</strong> of all the real spam, how much did the model catch?</li><li><strong>F1 score:</strong> one number that balances precision and recall.</li><li><strong>Confusion matrix:</strong> a small grid showing exactly which labels get mixed up with which.</li></ul><p>The number is not the end. The most useful thing I learned was to look at the <strong>worst predictions</strong>. Which houses did the model get most wrong, and what do they have in common? Maybe they are all mansions, or all from one neighbourhood with few examples. Those patterns tell you what to fix, and they often send you back to Step 2 or Step 3 for another round.</p><p>And one rule I now treat as sacred: once you have looked at the test score, do not go back and tune to improve it. The moment you do, the test set stops being a fair exam.</p><h3>Conclusion</h3><p>When I started, machine learning felt like a hundred new words arriving at once. Looking back, it is one calm path: load the data, understand it, prepare it, split it, train a model, check it with cross-validation, tune it with grid search, and evaluate it honestly on data it has never seen.</p><p>The model itself turned out to be the shortest step. Most of the real work, and most of the mistakes, live in understanding and preparing the data, and in being strict about what the model is allowed to see.</p><p>Here is the thought that made it all click for me. In biology, cells and atoms are the tiny building blocks of every living thing. In computing, those building blocks are 0s and 1s. Every text, picture and video is, deep down, just a very long, very organised row of 0s and 1s. Machine learning is the art of turning those building blocks into patterns a model can learn from. So yes, technically, my cat photos and my bank statements are made of the same stuff. Only one of them makes me smile.</p><p>If you are where I was in week one, overwhelmed and unsure where each term fits, start with the path. Learn the steps in order, and every new technique will have a place to land. Next, I am taking this same process into text, images and video in my second machine learning course.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c88e7ebff36a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strapi Powers the Content. Flutter Brings It to Life.]]></title>
            <link>https://medium.com/@chukwudumebiii/strapi-powers-the-content-flutter-brings-it-to-life-85c3b33ce033?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/85c3b33ce033</guid>
            <category><![CDATA[strapi]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[headless-cms]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 09:35:27 GMT</pubDate>
            <atom:updated>2026-02-25T09:35:27.916Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-nRzc8mN6uQkvgkRu_tPw.png" /></figure><p>A hands-on guide to building a Flutter app that fetches, adds, updates, and deletes data from a Strapi backend, no backend experience required.</p><p>Have you ever had a brilliant app idea, sat down to build it, and then hit a wall the moment you asked yourself — <em>“Wait, where is this data going to live?”</em> Setting up a backend from scratch can feel like you offered to make a hot nice pepper soup and someone handed you a live goat and a blunt knife.</p><p>Yes, you’ve probably heard of Firebase and Supabase — and they’re great. But Firebase can get expensive fast once your app starts growing, Supabase, while powerful, still assumes you’re comfortable around databases and SQL, and sometimes you might just need to do something as simple as displaying articles for your help page. Strapi sits in a different lane. It gives you a visual admin panel where you define your content structure, click save, and your API is just… there. No query writing, no schema migrations, no infrastructure headaches. If you’re building a content-driven app and you want full control over your data without the complexity, Strapi is the move.</p><p>That’s the problem Strapi solves. And Flutter? Flutter makes sure what the user actually sees is clean, fast, and beautiful.</p><p>By the end of this article, you’ll have a working Flutter app that talks to a Strapi backend — fetching a list of restaurants, adding new ones, and deleting them, all from a clean mobile UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*LHBQxfVJhO6EhbGo4kU4EQ.gif" /></figure><h3>What is Strapi?</h3><p>Strapi is an open-source, headless CMS (Content Management System) that lets you spin up a fully functional REST or GraphQL API in minutes. Instead of writing your own server, models, and database logic from scratch, Strapi gives you an admin panel where you define your data structure and it generates the API endpoints automatically.</p><p>Think of it as your backend on easy mode.</p><p>👉 <a href="https://docs.strapi.io/dev-docs/quick-start">Get Strapi set up here</a></p><h3>What is Flutter?</h3><p>Flutter is Google’s open-source UI toolkit for building natively compiled apps across mobile, web, and desktop — from a single codebase. Written in Dart, it gives you a rich set of widgets and a fast rendering engine that makes your UI feel smooth and responsive out of the box.</p><p>Think of it as the layer that turns your data into something people actually want to look at.</p><p>👉 <a href="https://docs.flutter.dev/get-started/install">Get Flutter set up here</a></p><h3>What We’re Building</h3><p>A simple restaurant manager app with three core features:</p><ul><li>A list of restaurants fetched from Strapi on load</li><li>A floating action button (FAB) with a + icon to add a new restaurant</li><li>An edit icon to edit or update the details of a restaurant</li><li>A delete icon on each row to remove a restaurant</li></ul><p>Here’s the project structure we’ll follow throughout:</p><pre>lib/<br>├── models/<br>│   └── restaurant.dart<br>├── services/<br>│   └── restaurant_service.dart<br>├── screens/<br>│   └── home_screen.dart<br>└── main.dart</pre><p>Simple. Clean. Each file knows its job.</p><h3>Step 1: Create Your Strapi Project</h3><p>After making sure you have fully set up <a href="https://docs.strapi.io/dev-docs/quick-start">Strapi</a>, open your terminal and run:</p><pre>npx create-strapi-app@latest restaurant-api --quickstart</pre><p>The --quickstart flag sets everything up with an SQLite database, so you don&#39;t have to configure anything. Once it finishes, Strapi will automatically open your browser at <a href="http://localhost:1337/admin.">http://localhost:1337/admin.</a></p><p>Create your admin account and log in.</p><h3>Step 2: Create the Restaurant Collection Type</h3><p>Once you’re in the Strapi admin panel:</p><ol><li>Click <strong>Content-Type Builder</strong> in the left sidebar</li><li>Click <strong>Create new collection type</strong></li><li>Name it Restaurant (Strapi will handle the pluralization)</li><li>Add the following fields:</li></ol><ul><li>name → Short text</li><li>cuisine → Short text</li><li>location → Short text</li></ul><p>Click <strong>Save</strong> and let Strapi restart</p><p>Your backend just built itself. No stress, No wahala🔥</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*2v40OIsT0kMBN0-WmnVrow.png" /><figcaption>Successfully created “Restaurant” collection type</figcaption></figure><h3>Step 3: Add Some Seed Data</h3><p>Now let’s populate it with a few restaurants, so we have something to display.</p><ol><li>Go to <strong>Content Manager</strong> → <strong>Restaurant</strong></li><li>Click <strong>Create new entry</strong> and add a few restaurants.</li><li>Hit <strong>Publish</strong> on each entry — this is important. Strapi won’t expose unpublished content via the API.</li></ol><h3>Step 4: Open Up the API Permissions</h3><p>By default, Strapi locks down all endpoints. We need to give the public role permission to read, create, and delete restaurants.</p><ol><li>Go to <strong>Settings</strong> → <strong>Users &amp; Permissions Plugin</strong> → <strong>Roles</strong></li><li>Click on <strong>Public</strong></li><li>Scroll down to <strong>Restaurant</strong> and check: find, update, create, delete</li><li>Click <strong>Save</strong></li></ol><p>Now test it. Open your browser and go to:</p><pre>http://localhost:1337/api/restaurants</pre><p>You should see your restaurant data wrapped in a JSON response like this:</p><pre>{<br>  &quot;data&quot;: [<br>    {<br>      &quot;id&quot;: 1,<br>      &quot;attributes&quot;: {<br>        &quot;name&quot;: &quot;The Burger Joint&quot;,<br>        &quot;cuisine&quot;: &quot;American&quot;,<br>        &quot;location&quot;: &quot;Lagos Island&quot;<br>      }<br>    }<br>  ]<br>}</pre><p>That data wrapper is important; we&#39;ll deal with it when parsing in Flutter.</p><h3>Step 5: Set Up Your Flutter Project</h3><p>Create a new Flutter project:</p><p>bash</p><pre>flutter create restaurant_app<br>cd restaurant_app</pre><p>Open pubspec.yaml and add the http package:</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  http: ^1.2.0</pre><p>Run:</p><pre>flutter pub get</pre><p>That’s the only dependency you need.</p><h3>Step 6: The Restaurant Model</h3><p>Create lib/models/restaurant.dart:</p><pre>/// Represents a single restaurant entry from the Strapi backend.<br>class Restaurant {<br>  final int id;<br>  final String documentId;<br>  final String name;<br>  final String cuisine;<br>  final String location;<br><br>  Restaurant({<br>    required this.id,<br>    required this.documentId,<br>    required this.name,<br>    required this.cuisine,<br>    required this.location,<br>  });<br><br>  /// Strapi wraps collection data in a nested structure like:<br>  /// {<br>  ///    &quot;id&quot;: 1,<br>  ///    &quot;documentId&quot;: &quot;123456789&quot;,<br>  ///    &quot;name&quot;: &quot;Pizza Palace&quot;,<br>  ///    &quot;cuisine&quot;: &quot;Italian&quot;,<br>  ///    &quot;location&quot;: &quot;Downtown&quot;<br>  /// }<br>  /// This factory constructor unwraps that format for us.<br>  factory Restaurant.fromJson(Map&lt;String, dynamic&gt; json) {<br>    return Restaurant(<br>      id: json[&#39;id&#39;] as int,<br>      documentId: json[&#39;documentId&#39;] as String,<br>      name: json[&#39;name&#39;] as String,<br>      cuisine: json[&#39;cuisine&#39;] as String,<br>      location: json[&#39;location&#39;] as String,<br>    );<br>  }<br>}Step 7: The Restaurant Service</pre><p>Create lib/services/restaurant_service.dart. This file handles all communication with Strapi:</p><pre><br>import &#39;dart:convert&#39;;<br>import &#39;package:http/http.dart&#39; as http;<br>import &#39;../models/restaurant.dart&#39;;<br><br>// Change this to your machine&#39;s local IP if testing on a physical device.<br>// Use 10.0.2.2 for Android emulator, or localhost for web/desktop.<br><br>const String _baseUrl = &#39;http://10.0.2.2:1337&#39;;<br><br>/// Handles all HTTP communication with the Strapi /api/restaurants endpoint.<br>class RestaurantService {<br>  /// Fetches all restaurants from Strapi.<br>  ///<br>  /// Strapi returns a response shaped like:<br>  /// { &quot;data&quot;: [ { &quot;id&quot;: 1, &quot;attributes&quot;: { ... } }, ... ] }<br>  Future&lt;List&lt;Restaurant&gt;&gt; getRestaurants() async {<br>    final response = await http.get(Uri.parse(&#39;$_baseUrl/api/restaurants&#39;));<br><br>    if (response.statusCode == 200) {<br>      final Map&lt;String, dynamic&gt; body = jsonDecode(response.body);<br>      final List&lt;dynamic&gt; data = body[&#39;data&#39;];<br><br><br>      // Map each item in the list to a Restaurant object<br>      return data.map((item) =&gt; Restaurant.fromJson(item)).toList();<br>    } else {<br>      throw Exception(&#39;Failed to load restaurants: ${response.statusCode}&#39;);<br>    }<br>  }<br><br>  /// Creates a new restaurant in Strapi.<br>  ///<br>  /// Strapi expects the POST body to be wrapped in a &quot;data&quot; key:<br>  /// { &quot;data&quot;: { &quot;name&quot;: &quot;...&quot;, &quot;cuisine&quot;: &quot;...&quot; } }<br>  Future&lt;void&gt; addRestaurant(<br>    String name,<br>    String cuisine,<br>    String location,<br>  ) async {<br>    final response = await http.post(<br>      Uri.parse(&#39;$_baseUrl/api/restaurants&#39;),<br>      headers: {&#39;Content-Type&#39;: &#39;application/json&#39;},<br>      body: jsonEncode({<br>        &#39;data&#39;: {&#39;name&#39;: name, &#39;cuisine&#39;: cuisine, &#39;location&#39;: location},<br>      }),<br>    );<br><br>    if (response.statusCode != 200 &amp;&amp; response.statusCode != 201) {<br>      throw Exception(&#39;Failed to add restaurant: ${response.statusCode}&#39;);<br>    }<br>  }<br><br>  /// Updates an existing restaurant&#39;s [name], [cuisine] and [location] by its [id].<br>  ///<br>  /// Strapi expects a PUT request with the same &quot;data&quot; wrapper used for POST:<br>  /// { &quot;data&quot;: { &quot;name&quot;: &quot;...&quot;, &quot;cuisine&quot;: &quot;...&quot;, &quot;location&quot;: &quot;...&quot; } }<br>  Future&lt;void&gt; updateRestaurant(<br>    String id,<br>    String name,<br>    String cuisine,<br>    String location,<br>  ) async {<br>    final response = await http.put(<br>      Uri.parse(&#39;$_baseUrl/api/restaurants/$id&#39;),<br>      headers: {&#39;Content-Type&#39;: &#39;application/json&#39;},<br>      body: jsonEncode({<br>        &#39;data&#39;: {&#39;name&#39;: name, &#39;cuisine&#39;: cuisine, &#39;location&#39;: location},<br>      }),<br>    );<br><br>    if (response.statusCode != 200) {<br>      throw Exception(&#39;Failed to update restaurant: ${response.statusCode}&#39;);<br>    }<br>  }<br><br>  /// Deletes a restaurant by its [id].<br>  Future&lt;void&gt; deleteRestaurant(String id) async {<br>    final response = await http.delete(<br>      Uri.parse(&#39;$_baseUrl/api/restaurants/$id&#39;),<br>    );<br><br>    if (response.statusCode != 200 &amp;&amp; response.statusCode != 204) {<br>      throw Exception(&#39;Failed to delete restaurant: ${response.statusCode}&#39;);<br>    }<br>  }<br>}</pre><p>One thing to note: when sending a POST to Strapi, your request body needs to be wrapped in a data object — just like how the response comes back wrapped in one. Strapi is consistent that way.</p><h3>Step 8: The Home Screen</h3><p>This is where it all comes together. Create lib/screens/home_screen.dart:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;../models/restaurant.dart&#39;;<br>import &#39;../services/restaurant_service.dart&#39;;<br><br>/// The main screen of the app — shows the list of restaurants and<br>/// lets the user add or delete entries.<br>class HomeScreen extends StatefulWidget {<br>  const HomeScreen({super.key});<br><br>  @override<br>  State&lt;HomeScreen&gt; createState() =&gt; _HomeScreenState();<br>}<br><br>class _HomeScreenState extends State&lt;HomeScreen&gt; {<br>  final RestaurantService _service = RestaurantService();<br><br>  // Holds the fetched list; null means &quot;still loading&quot;<br>  List&lt;Restaurant&gt;? _restaurants;<br>  String? _errorMessage;<br><br>  @override<br>  void initState() {<br>    super.initState();<br>    // Load restaurants as soon as the screen opens<br>    _loadRestaurants();<br>  }<br><br>  /// Fetches the restaurant list and refreshes the UI.<br>  Future&lt;void&gt; _loadRestaurants() async {<br>    setState(() {<br>      _errorMessage = null; // Clear any previous error<br>    });<br>    try {<br>      final data = await _service.getRestaurants();<br>      setState(() =&gt; _restaurants = data);<br>    } catch (e) {<br>      setState(() =&gt; _errorMessage = e.toString());<br>    }<br>  }<br><br>  /// Shows a confirmation dialog, then deletes the restaurant if confirmed.<br>  Future&lt;void&gt; _confirmDelete(String id, String name) async {<br>    final confirmed = await showDialog&lt;bool&gt;(<br>      context: context,<br>      builder: (context) =&gt; AlertDialog(<br>        title: const Text(&#39;Delete Restaurant&#39;),<br>        content: Text(&#39;Are you sure you want to delete &quot;$name&quot;?&#39;),<br>        actions: [<br>          TextButton(<br>            onPressed: () =&gt; Navigator.pop(context, false), // Cancel<br>            child: const Text(&#39;Cancel&#39;),<br>          ),<br>          ElevatedButton(<br>            style: ElevatedButton.styleFrom(backgroundColor: Colors.red),<br>            onPressed: () =&gt; Navigator.pop(context, true), // Confirm<br>            child: const Text(&#39;Delete&#39;, style: TextStyle(color: Colors.white)),<br>          ),<br>        ],<br>      ),<br>    );<br><br>    // Only proceed if the user tapped &quot;Delete&quot;<br>    if (confirmed == true) {<br>      try {<br>        await _service.deleteRestaurant(id);<br>        await _loadRestaurants();<br>      } catch (e) {<br>        _showError(&#39;Delete failed: $e&#39;);<br>      }<br>    }<br>  }<br><br>  /// Shows a pre-filled edit dialog for the given [restaurant].<br>  void _showEditDialog(Restaurant restaurant) {<br>    final nameController = TextEditingController(text: restaurant.name);<br>    final cuisineController = TextEditingController(text: restaurant.cuisine);<br>    final locationController = TextEditingController(text: restaurant.location);<br><br>    showDialog(<br>      context: context,<br>      builder: (context) =&gt; AlertDialog(<br>        title: const Text(&#39;Edit Restaurant&#39;),<br>        content: Column(<br>          mainAxisSize: MainAxisSize.min,<br>          children: [<br>            TextField(<br>              controller: nameController,<br>              decoration: const InputDecoration(labelText: &#39;Restaurant Name&#39;),<br>            ),<br>            const SizedBox(height: 8),<br>            TextField(<br>              controller: cuisineController,<br>              decoration: const InputDecoration(labelText: &#39;Cuisine Type&#39;),<br>            ),<br>            const SizedBox(height: 8),<br>            TextField(<br>              controller: locationController,<br>              decoration: const InputDecoration(labelText: &#39;Location&#39;),<br>            ),<br>          ],<br>        ),<br>        actions: [<br>          TextButton(<br>            onPressed: () =&gt; Navigator.pop(context), // Cancel<br>            child: const Text(&#39;Cancel&#39;),<br>          ),<br>          ElevatedButton(<br>            onPressed: () async {<br>              final name = nameController.text.trim();<br>              final cuisine = cuisineController.text.trim();<br>              final location = locationController.text.trim();<br><br>              // Don&#39;t submit if either field is empty<br>              if (name.isEmpty || cuisine.isEmpty || location.isEmpty) return;<br><br>              Navigator.pop(context); // Close dialog before async work<br>              try {<br>                await _service.updateRestaurant(<br>                  restaurant.documentId,<br>                  name,<br>                  cuisine,<br>                  location,<br>                );<br>                await _loadRestaurants(); // Refresh the list<br>              } catch (e) {<br>                _showError(&#39;Update failed: $e&#39;);<br>              }<br>            },<br>            child: const Text(&#39;Save&#39;),<br>          ),<br>        ],<br>      ),<br>    );<br>  }<br><br>  /// Shows the &quot;Add Restaurant&quot; dialog with two text fields.<br>  void _showAddDialog() {<br>    final nameController = TextEditingController();<br>    final cuisineController = TextEditingController();<br>    final locationController = TextEditingController();<br><br>    showDialog(<br>      context: context,<br>      builder: (context) =&gt; AlertDialog(<br>        title: const Text(&#39;Add Restaurant&#39;),<br>        content: Column(<br>          // Shrink the dialog to fit just its children<br>          mainAxisSize: MainAxisSize.min,<br>          children: [<br>            TextField(<br>              controller: nameController,<br>              decoration: const InputDecoration(labelText: &#39;Restaurant Name&#39;),<br>            ),<br>            const SizedBox(height: 8),<br>            TextField(<br>              controller: cuisineController,<br>              decoration: const InputDecoration(labelText: &#39;Cuisine Type&#39;),<br>            ),<br>            const SizedBox(height: 8),<br>            TextField(<br>              controller: locationController,<br>              decoration: const InputDecoration(labelText: &#39;Location&#39;),<br>            ),<br>          ],<br>        ),<br>        actions: [<br>          TextButton(<br>            onPressed: () =&gt; Navigator.pop(context), // Cancel<br>            child: const Text(&#39;Cancel&#39;),<br>          ),<br>          ElevatedButton(<br>            onPressed: () async {<br>              final name = nameController.text.trim();<br>              final cuisine = cuisineController.text.trim();<br>              final location = locationController.text.trim();<br><br>              // Basic validation — don&#39;t submit empty fields<br>              if (name.isEmpty || cuisine.isEmpty) return;<br><br>              Navigator.pop(context); // Close the dialog first<br>              try {<br>                await _service.addRestaurant(name, cuisine, location);<br>                await _loadRestaurants(); // Refresh the list<br>              } catch (e) {<br>                _showError(&#39;Add failed: $e&#39;);<br>              }<br>            },<br>            child: const Text(&#39;Add&#39;),<br>          ),<br>        ],<br>      ),<br>    );<br>  }<br><br>  /// Displays a simple SnackBar with an error message.<br>  void _showError(String message) {<br>    ScaffoldMessenger.of(context).showSnackBar(<br>      SnackBar(content: Text(message), backgroundColor: Colors.red),<br>    );<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: const Text(&#39;Restaurants&#39;)),<br>      // Show a spinner, an error, or the list depending on state<br>      body: _buildBody(),<br>      floatingActionButton: FloatingActionButton(<br>        onPressed: _showAddDialog,<br>        tooltip: &#39;Add Restaurant&#39;,<br>        child: const Icon(Icons.add),<br>      ),<br>    );<br>  }<br><br>  Widget _buildBody() {<br>    // Still waiting for the first load<br>    if (_restaurants == null &amp;&amp; _errorMessage == null) {<br>      return const Center(child: CircularProgressIndicator());<br>    }<br><br>    // Something went wrong<br>    if (_errorMessage != null) {<br>      return Center(<br>        child: Column(<br>          mainAxisSize: MainAxisSize.min,<br>          children: [<br>            Text(_errorMessage!, style: const TextStyle(color: Colors.red)),<br>            const SizedBox(height: 12),<br>            ElevatedButton(<br>              onPressed: _loadRestaurants,<br>              child: const Text(&#39;Retry&#39;),<br>            ),<br>          ],<br>        ),<br>      );<br>    }<br><br>    // Empty state<br>    if (_restaurants!.isEmpty) {<br>      return const Center(child: Text(&#39;No restaurants yet. Tap + to add one.&#39;));<br>    }<br><br>    // The actual list<br>    return ListView.builder(<br>      itemCount: _restaurants!.length,<br>      itemBuilder: (context, index) {<br>        final restaurant = _restaurants![index];<br>        return Padding(<br>          padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),<br>          child: Row(<br>            mainAxisAlignment: MainAxisAlignment.spaceBetween,<br>            children: [<br>              // Left side — name and cuisine<br>              Column(<br>                crossAxisAlignment: CrossAxisAlignment.start,<br>                children: [<br>                  Text(<br>                    restaurant.name,<br>                    style: const TextStyle(<br>                      fontSize: 16,<br>                      fontWeight: FontWeight.w600,<br>                    ),<br>                  ),<br>                  Text(<br>                    restaurant.cuisine,<br>                    style: const TextStyle(color: Colors.grey),<br>                  ),<br>                ],<br>              ),<br>              // Right side — edit and delete buttons<br>              Row(<br>                mainAxisSize: MainAxisSize.min,<br>                children: [<br>                  IconButton(<br>                    icon: const Icon(Icons.edit_outlined, color: Colors.blue),<br>                    tooltip: &#39;Edit&#39;,<br>                    onPressed: () =&gt; _showEditDialog(restaurant),<br>                  ),<br>                  IconButton(<br>                    icon: const Icon(Icons.delete_outline, color: Colors.red),<br>                    tooltip: &#39;Delete&#39;,<br>                    onPressed: () =&gt;<br>                        _confirmDelete(restaurant.documentId, restaurant.name),<br>                  ),<br>                ],<br>              ),<br>            ],<br>          ),<br>        );<br>      },<br>    );<br>  }<br>}</pre><h3>Step 9: Run It</h3><p>Finally, update lib/main.dart to access the HomeScreen and make sure your Strapi server is still running at http://localhost:1337, then:</p><pre>flutter run</pre><h3>Step 10: A Note on Running Strapi Locally</h3><p>Every time you close your terminal, Strapi stops. It’s a local server — it only lives as long as that terminal session is open. So whenever you come back to work on the project, navigate to your Strapi folder and run:</p><p>bash</p><pre>cd restaurant-api<br>npm run develop</pre><p>Keep that terminal running in the background while you work on Flutter. If your API calls are suddenly failing, check that window first before debugging anything else.</p><p><strong>If port 1337 throws an error on restart</strong>, a previous Strapi process probably didn’t shut down cleanly. Kill it with:</p><p>bash</p><pre>kill $(lsof -t -i:1337)</pre><p>Then run npm run develop again, and you&#39;re good.</p><p>And just like that — your list of restaurants should be loading straight from Strapi, 🎉. Tap the FAB, add a new spot, and watch it appear. easily update, hit the delete icon, and it’s gone live, from the database, no page refresh, no magic tricks.</p><p>You just built a fully connected, data-driven Flutter app with zero custom backend. Let that sink in for a second 😄.</p><p>Now, everything we did here runs on localhost, meaning it only works on your machine. If you’d like to take this further and have your Flutter app talk to a real, live Strapi server that anyone can access, drop a comment below and I’ll put together a Part 2 that walks you through hosting your Strapi backend so your app works in the wild 🚀.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*ElAxAPC3UJUMcBzYBofn4g.gif" /></figure><p>Found this helpful? Drop a comment, share it with a dev friend, or give it a clap. Questions? I’m right here in the responses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85c3b33ce033" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI, ML, DL & AGI — What They Mean and Why They Matter]]></title>
            <link>https://medium.com/@chukwudumebiii/ai-ml-dl-agi-what-they-mean-and-why-they-matter-a1f02b3f28be?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f02b3f28be</guid>
            <category><![CDATA[tech-explained-simply]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 22:31:34 GMT</pubDate>
            <atom:updated>2026-09-14T07:42:28.874Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI, ML, DL &amp; AGI — What They Mean and Why They Matter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wbQ9rbYNI6L2xcNq2W5kw.png" /></figure><p>Have you ever asked Siri a question and thought, <em>“How did my phone just know that?”</em> Or maybe you’ve played around with ChatGPT and wondered, <em>“Wait… is this thing a robot or what?”</em></p><p>From Netflix recommending movies, to cars that can drive themselves, to voice assistants that understand you better than some humans — artificial intelligence is all around us. Yet, most people still mix up the terms: <strong>AI, ML, DL, and AGI.</strong></p><p>Some will tell you they’re all the same. Others will smile and nod like they get it. But today, that ends.</p><blockquote><strong><em>By the end of this article, you’ll be able to explain the difference between AI, ML, DL, and AGI — clearly, confidently, and even in your sleep.</em></strong></blockquote><p>Let’s break it down together — no jargon overload, just clear thinking and everyday examples.</p><h3>🧠What is A.I (<strong>Artificial Intelligence)</strong></h3><p>Artificial Intelligence, or AI, simply means giving machines the ability to <strong>think and act smart</strong> — like a human would.</p><p>It is when a system, computer or device can do things like:</p><ol><li>Communicate with you like a human ( ChatGPT, Siri, Alexa)</li><li>Drive a car by itself and follow traffic rules (like Tesla’s Autopilot)</li><li>Recommend what movie to watch next (Netflix)</li></ol><p>In short, <strong>AI allows machines to perform tasks that would normally require human intelligence</strong> — such as reasoning, learning, problem-solving, or decision-making.</p><h3>🎯 A Simple Analogy</h3><blockquote><em>Think of AI like a </em><strong><em>very smart assistant</em></strong><em>.</em></blockquote><p>You tell it what to do — like “Remind me to call mum by 8pm” — and it handles it. The more you use it, the better it gets at helping you.</p><p>But here’s the thing: AI doesn’t “understand” in the human sense. It learns from patterns, data, and rules. It doesn’t have feelings or consciousness — it’s just very good at mimicking smart behavior.</p><h3>📚 What Is ML? (Machine Learning)</h3><p>Machine Learning (ML) is a <strong>subset of AI</strong> — in other words, it’s a specific way we train AI to “think.”<br> Instead of giving the machine strict rules, we feed it <strong>lots of data</strong>, and it learns from patterns, examples, and experiences — just like humans do.</p><p>Real-world examples of ML:</p><ol><li><strong>Social media</strong> decides what content to show you</li><li><strong>Netflix</strong> recommends shows based on your taste</li><li><strong>Banks</strong> use ML to detect unusual (possibly fraudulent) activity on your account</li><li>S<strong>ocial media</strong> decides what content to show you</li></ol><h3>🎯 Simple Analogy:</h3><blockquote><em>ML is like a child learning from picture books.<br> You show a child 100 pictures of cats and dogs. At first, they may guess. But over time, they get better at telling which is which, just by seeing patterns (ears, tails, fur).</em></blockquote><p>That’s exactly how Machine Learning works — <strong>it learns from examples</strong> and improves with more data.</p><h3>🧠 What Is DL? (Deep Learning)</h3><p>Deep Learning (DL) is a <strong>subset of Machine Learning</strong>, but on a much deeper level. It uses something called <strong>neural networks</strong> — inspired by how the human brain works — to make decisions.</p><p>Think of it as <strong>many layers of learning</strong> happening at once. That’s why it’s called “deep.”</p><p>Real-world examples of DL:</p><ol><li><strong>Self-driving cars</strong> recognize roads, traffic signs, and pedestrians</li><li><strong>Facial recognition</strong> on your phone</li><li><strong>Voice assistants</strong> that understand your commands in different accents</li><li><strong>Medical imaging</strong> detects diseases like cancer from scans</li></ol><h3>🎯 Simple Analogy:</h3><blockquote><em>If ML is the child learning from books, </em><strong><em>DL is the child solving hard math problems in their head, without help</em></strong><em>.<br> It’s deeper, more powerful, and handles complex situations with less human guidance.</em></blockquote><p>DL allows machines to learn directly from raw data (like images, sound, and text) and get better on their own.</p><h3>🚀 What Is AGI? (Artificial General Intelligence)</h3><p>AGI is where things get futuristic.</p><p>AGI stands for <strong>Artificial General Intelligence</strong> — this would be a machine that can think, learn, and reason <strong>just like a human</strong>, across <em>any</em> task or topic.</p><p>Today’s AI (even the smart ones like ChatGPT or Siri) are <strong>narrow</strong> — they’re trained to do specific things. But AGI would be able to:</p><ol><li>Learn new skills without being reprogrammed</li><li>Apply knowledge from one area to another (like humans do)</li><li>Understand feelings, intentions, and context</li></ol><p>AGI doesn’t just mimic intelligence — it <strong>possesses</strong> it.</p><h3>🎯 Simple Analogy:</h3><blockquote><em>AGI is like a super smart child who can learn </em><strong><em>any subject</em></strong><em> — math, music, football, Igbo, Yoruba — all on their own, and still crack jokes and understand how you feel.</em></blockquote><p>We’re <strong>not there yet</strong>. AGI is still theoretical — researchers are working on it, but it hasn’t been achieved. When (or if) it arrives, it could change the world completely.</p><p>Let’s recap:</p><ul><li><strong>AI</strong> is the big umbrella — it’s all about making machines smart.</li><li><strong>ML</strong> is how machines learn from data and experience.</li><li><strong>DL</strong> is the deeper, brain-like version of learning using neural networks.</li><li><strong>AGI</strong> is the dream — machines that can truly think, adapt, and reason like us.</li></ul><blockquote><em>You can now confidently explain what these mean — and not just nod along when someone drops AI terms like it’s seasoning cube.</em></blockquote><p><strong>In short:</strong><br> <strong>AI</strong> = Smart<br> <strong>ML</strong> = Learns<br> <strong>DL</strong> = Thinks deeper<br> <strong>AGI</strong> = Thinks like you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f02b3f28be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ I Was a Flutter Dev… Until AI Made Me Rethink Everything]]></title>
            <link>https://medium.com/@chukwudumebiii/i-was-a-flutter-dev-until-ai-made-me-rethink-everything-7e41cffc51a8?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e41cffc51a8</guid>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 09:57:25 GMT</pubDate>
            <atom:updated>2025-07-28T09:57:25.059Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always seen myself as a builder.</p><p>As a Flutter developer, I’ve spent the last few years creating beautiful, responsive applications that solve problems. But at some point, it wasn’t just about clean UIs or smooth animations anymore — I started craving more. I wanted to build things that could think, adapt, and make decisions.</p><p>That led me to explore Web3. I dabbled in Solidity, played around with smart contracts, and tried to understand how the blockchain ecosystem worked. But honestly, something was just… off. The spark wasn’t strong enough to keep me going.</p><h3>💙 Flutter Was My First Love</h3><p>Flutter will always feel like my first love. ❤️</p><p>The simplicity of the Dart language, the ability to target mobile, web, and desktop from a single codebase — it gave me the foundation to build fast and build well.</p><p>But as developers, we evolve. We chase new knowledge, new patterns, and new challenges. That’s what led me to the Web3 space.</p><p>Like many others, I originally thought Web3 was all about crypto and airdrops. But as I dug deeper, I started understanding the real tech beneath it — cryptographic structures, smart contracts, blockchain networks.</p><p>I even learned that Ethereum used Solidity, while Solana leaned more towards Rust. I picked up Solidity because, well, <em>the Ethereum community na him full pass 😅</em> (meaning: it had the largest community). I got into the syntax, figured out uint types and contract structure — but <strong>e no really sweet me like that</strong> (translation: it didn’t excite me enough). The passion wasn’t there.</p><p>So I quietly dropped Web3. No hard feelings.</p><h3>🔁 The AI Pivot</h3><p>Ironically, during that same time, I was working on a Flutter app powered by OpenAI’s API — a simple chatbot. And that’s what kept me up at night… in the best way possible.</p><p>That small side project made me feel something I hadn’t felt in a while: <strong>real curiosity</strong>.</p><p>This time, it wasn’t just about coding; it felt like I was crafting behavior.</p><p>This wasn’t hype — this was the next evolution of software. And somehow, it felt like home. 🏡</p><h3>🧠 Down the Rabbit Hole</h3><p>From there, everything changed.</p><p>I began learning about prompt engineering, LLMs (Large Language Models), generative AI, context windows, token limits, and the concept of memory in AI systems.</p><p><strong>Each new term na new rabbit hole 🕳️</strong> (meaning: it opened up an entire universe of knowledge).</p><p>I studied OpenAI’s ChatGPT, Anthropic’s Claude, Google’s Gemini — and how to tweak their responses using techniques like:</p><ul><li><strong>Zero-shot prompting</strong></li><li><strong>Few-shot prompting</strong></li><li><strong>Chain-of-Thought prompting</strong></li></ul><p>I wasn’t just playing with models anymore — I was designing how they <strong>think</strong>, how they <strong>respond</strong>, and how they <strong>interact</strong> — even with the limits of memory and token size.</p><p>Over time, it became clear: <strong>this is it</strong>. This is where I want to go all in.</p><h3>🛠️ What AI Engineering Means to Me</h3><p>AI Engineering, to me, is the art of taking existing models and making them solve real-world problems — from the basic to the very complex.</p><p>It’s like teaching a child:</p><blockquote><em>“A is for Apple, and an Apple can be red or green.”</em></blockquote><p>Then watching that child turn around and say:</p><blockquote><em>“Hey, this fruit looks like an Apple!” 🍎</em></blockquote><p>That’s the magic of AI — teaching machines to reason just like humans.</p><p>Of course, AI Engineering isn’t just about calling APIs. It’s rooted in computer science and math — things like:</p><ul><li>Algebra</li><li>Calculus</li><li>Probability</li><li>Statistics</li><li>Optimization</li></ul><p>And of course, <strong>Python is everywhere</strong>.</p><p>To be honest, I once dabbled in Python years ago — but now, I’m taking it seriously.</p><h3>📚 My Commitment</h3><p>Right now, I’m refreshing my Python, learning everything I can about AI engineering, and using it to build even cooler AI-powered apps with Flutter.</p><p>I use resources like:</p><ul><li><a href="https://roadmap.sh/ai-engineer">roadmap.sh/ai-engineer</a></li><li>Microsoft AI paths</li><li>Real projects and documentation, not just tutorials</li></ul><h3>🎯` Final Thoughts</h3><p>If you’re like me — someone who loves to build, explore, but hasn’t yet found that “thing” that sparks your obsession — you might want to explore AI Engineering.</p><p>It’s not always easy. <strong>E go choke sometimes 😅</strong> (translation: it gets intense). But every step you take pulls you deeper in, and every challenge feels worth it.</p><blockquote><em>AI isn’t just the future — </em><strong><em>it’s already here.</em></strong><em><br>And I want to be one of the people shaping it. 🚀</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e41cffc51a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Core Concepts: Building Efficient Cross-Platform Apps]]></title>
            <link>https://medium.com/@chukwudumebiii/flutter-core-concepts-building-efficient-cross-platform-apps-e5cf94af9178?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5cf94af9178</guid>
            <category><![CDATA[flutter-development]]></category>
            <category><![CDATA[cross-platform-apps]]></category>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[widgets-in-flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 01:28:12 GMT</pubDate>
            <atom:updated>2024-09-28T01:28:12.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*6ItnS0UECpo5jwYo256wQw.png" /><figcaption>Flutter Core Concepts</figcaption></figure><p>Google’s innovative UI toolkit, Flutter has transformed cross-platform development through its unique approach. At its core, Flutter’s success stems from key concepts distinguishing it from traditional frameworks. This article delves into three fundamental aspects that define Flutter’s architecture and development paradigm:</p><ol><li><strong>Understanding Flutter’s Reactive and Declarative Nature</strong></li><li><strong>Decoding Flutter’s Motto: Everything is a Widget</strong></li><li><strong>Flutter’s Principal Components</strong></li></ol><p>By exploring these core concepts, developers can better understand how Flutter works under the hood, enabling them to create more efficient, responsive, and maintainable applications.</p><h3><strong>Understanding Flutter’s Reactive and Declarative Nature</strong></h3><p>In modern engineering, we have two paradigms that stand out for their impact on UI development: reactive programming and declarative UIs.</p><p><strong>a. Reactive Programming in Flutter</strong>: In Flutter, the reactive model describes and interpenetrates its architecture, from how widgets are constructed to how they are beautifully rendered on the screen. This can be found both in the Widget Life Cycle and Rendering Pipeline.</p><ol><li><strong>Widget Lifecycle:</strong> Since I was a beginner in Flutter, the saying “<strong>everything in Flutter is a widget</strong>” has been prominent. Widgets are the building blocks of a user’s interface and are closely tied to the app state. The lifecycle also entails when the state of an app changes and how widgets are rebuilt.</li><li><strong>Rendering Pipeline:</strong> This is basically the process of taking the widget tree and transforming it into a low-level representation called “Render Objects”. This process is reactive because changes take place automatically, and it efficiently updates only parts of the UI that have changed rather than updating everything.</li></ol><blockquote><strong>The Flow of Reactivity:</strong></blockquote><blockquote><strong>State Change → Widget Rebuild → Element Tree Update → RenderObject Tree Update → Screen Update</strong></blockquote><p><strong>How Dart supports Flutter’s reactivity: It is quite unfair to mention Flutter without reference to Dart. Dart supports Flutter’s reactivity in the following ways:</strong></p><ol><li><strong>Efficient Object Handling: </strong>We can recall Dart is an Object-Oriented Language and at its runtime, it rapidly creates and destroys objects, which is important for Flutter’s frequent widget rebuilds.</li><li><strong>Garbage Collection:</strong> This efficiently handles the lifecycle of short-lived objects like widgets, thereby improving app performance.</li><li><strong>Language Features:</strong> Features like Event Loop, Streams, and Futures align well with Flutter’s reactive paradigm.</li></ol><p><strong>Reactive systems are characterized by their ability to be:</strong></p><ol><li><strong>Responsive</strong></li><li><strong>Resilient</strong></li><li><strong>Elastic</strong></li><li><strong>Message-Driven</strong></li></ol><p>In contrast, the reactive paradigm in Flutter is more about managing data flows and propagating changes within an application. It also reflects on the programming paradigms and techniques that enable applications to react and change data or state efficiently.</p><p><strong>b. Flutter’s Declarative UI Approach</strong>: In Flutter’s Declarative UI Approach, developers describe what the UI should look like at any moment. This high-level approach allows for a more intuitive and efficient UI development process. In Flutter, each widget declares its appearance based on the current state and configuration. The framework then takes care of rendering the UI based on these declarations. This separation of concerns simplifies the development process, as developers focus solely on describing the UI while the framework handles the complexities of rendering it.</p><blockquote><strong>Connecting Reactive and Declarative Paradigms in Flutter:</strong></blockquote><blockquote>Consider a simple counter app. The UI consists of a Text widget displaying a number and a FloatingActionButton to increment that number.</blockquote><blockquote>Reactive: The _incrementCounter method embodies the reactive aspect. The state (_counter) changes when the button is pressed, triggering a UI update.</blockquote><blockquote>Declarative: The build method illustrates the declarative aspect. It describes what the UI should look like based on the _counter state. No code specifies how to update the UI when _counter changes; Flutter handles this automatically. This is the essence of Flutter’s reactive declarative programming: the UI automatically updates in response to state changes.</blockquote><h3>Decoding Flutter’s Motto: Everything is a Widget</h3><p>In the world of Flutter, you’ve probably heard the phrase <strong>“Everything is a widget.”</strong> It’s a fundamental concept that makes Flutter both powerful and intuitive. But what does it mean, and how does Flutter turn these widgets into the apps we see on our screens? Let’s dive in and explore Flutter’s architecture using three magical trees.</p><p><strong>a. The Widget Tree ( Your App’s Blueprint ): </strong>When we say “Everything in Flutter is a widget,” we’re talking about the Widget Tree. This tree is like a blueprint for your app, made entirely of widgets. Widgets are the building blocks of your UI They describe what your app should look like Examples include Text, Buttons, Containers, and even your custom widgets</p><p>But here’s the catch: widgets are immutable, meaning once created, they can’t change. So how does Flutter update your UI when data changes? This is where our next tree comes in.</p><p><strong>b. The Element Tree ( The Magical Organizer ): </strong>Behind the scenes, Flutter creates an Element Tree from your Widget Tree. Think of the Element Tree as a magical organizer that brings your widget blueprint to life. Elements are created from widgets They keep track of each widget’s position in the UI Unlike widgets, elements can change over time</p><p>When your app’s data changes and you rebuild widgets, the Element Tree figures out what needs to be updated on the screen. It’s like a super-efficient construction manager, minimizing work and maximizing performance.</p><p><strong>c. The RenderObject Tree (The Pixel Painter): </strong>Finally, we have the RenderObject Tree. If the Widget Tree is the blueprint and the Element Tree is the manager, the RenderObject Tree is the team of painters and builders who put everything on the screen. RenderObjects handle the actual drawing on the screen They manage the size, position, and appearance of UI elements They optimize the painting process for smooth performance</p><p><strong>How It All Works Together:</strong></p><ol><li>You create your app using widgets (Widget Tree)</li><li>Flutter turns these into Elements (Element Tree)</li><li>The Elements create and manage RenderObjects (RenderObject Tree)</li><li>The RenderObjects paint your UI on the screen</li></ol><p>This separation allows Flutter to be incredibly efficient. When something changes in your app:</p><ol><li>You update your widgets</li><li>The Element Tree figures out what actually changed</li><li>Only the necessary RenderObjects update and repaint</li></ol><blockquote>So while “Everything in Flutter is a widget” is true from a developer’s perspective, Flutter’s use of these three trees allows it to turn your widget descriptions into a high-performance, reactive UI.</blockquote><p>Understanding this architecture can help you write more efficient Flutter code and appreciate the magic happening behind your widgets. Remember, even though you’re working primarily with widgets, Flutter’s Element and RenderObject trees are working hard to make your app smooth and responsive.</p><h3>Flutter’s Principal Components</h3><p>Flutter is a powerful framework that simplifies cross-platform development while offering native-like performance. Its unique architecture is super cool because it skips those platform-specific UI libraries, making sure our apps behave consistently across mobile, web, and desktop.</p><p><strong>i) Flutter’s Approach to Native Apps:</strong> Flutter reshapes what we think of as “native” in app development. Usually, native apps use different UI libraries for different platforms (like UIKit for iOS and Android Views), which can be such a headache! But Flutter? It’s like a superhero that leaps over these libraries and goes straight to machine code (ARM/x64 for mobile, JavaScript for web). This means our apps run super fast and smooth, just like native ones, but we get to use one codebase for everything. It’s like having your cake and eating it too!</p><p><strong>ii) Flutter’s Layered Architecture:</strong> Flutter’s architecture is built as a layered system, providing flexibility, extensibility, and modularity. Each layer serves a specific purpose and can be customized if needed. Let’s examine these layers:</p><p><strong>a. Embedder Layer: </strong>The Embedder acts as the bridge between Flutter and the OS. It handles critical tasks like setting up the runtime environment, rendering surfaces, and managing input events (e.g., touch, keyboard). The embedder also integrates with platform-specific features (e.g., GPS, sensors) and gives access to OS services like rendering pipelines and event loops. The best part? Flutter is so flexible that we can use it for full apps or just parts of existing apps. It even works on devices that aren’t officially supported!</p><p><strong>b. Flutter Engine Layer:</strong> The Flutter engine is responsible for rendering the UI. It converts visual elements (in Dart) into actual pixels on the screen. Key features include:</p><ol><li><strong>Rendering:</strong> Flutter uses the Skia graphics engine (or Impeller on iOS) for optimized cross-platform rendering.</li><li><strong>Dart Runtime:</strong> It manages Dart execution, supporting JIT for hot reload during development and AOT for fast release builds.</li><li><strong>Text Rendering:</strong> Ensures multilingual support and consistent font rendering across platforms.</li><li><strong>Platform Adaptability: </strong>Seamlessly integrates with mobile, desktop, and web platforms.</li><li><strong>Plugin Architecture: </strong>Interacts with native platform APIs to expand the app’s capabilities, such as accessing cameras and storage.</li></ol><p><strong>c. Flutter Framework Layer:</strong> This is where we, as developers, get to play! It’s all written in Dart and gives us the tools to build amazing UIs and manage our app’s logic. Check out these awesome features:</p><ol><li>It uses a reactive programming model, so our UI updates automatically when things change. It’s like magic!</li><li>Everything is a widget, from simple text to complex layouts. And Flutter gives us a ton of pre-built widgets to use.</li><li>We can create custom widgets or tweak existing ones to make our UI look exactly how we want.</li><li>here’s a huge ecosystem of third-party packages for all sorts of things. Need to make an HTTP request or add a cool animation? There’s probably a package for that!</li></ol><p><strong>iii) Key Components of a Flutter App:</strong> A typical Flutter app is composed of several tightly integrated layers:</p><ol><li><strong>Dart App Layer: </strong>This is where we build our UI and business logic using widgets.</li><li><strong>Framework Layer:</strong> It gives us high-level APIs for handling things like lifecycle, state, and animations.</li><li><strong>Engine Layer:</strong> This is responsible for rendering our UI and handling input.</li><li><strong>Embedder Layer:</strong> Connects the app to the OS, handling device features and initialization.</li><li><strong>Runner: </strong>Combines platform-specific APIs into a deployable package that runs the Flutter app on the target platform.</li></ol><p><strong>iv) Flutter’s Unique Rendering Strategy:</strong> Flutter does things differently from other cross-platform frameworks, and that’s what makes it so awesome! Instead of using native UI components or web views, Flutter renders the UI directly through its engine. This approach is like taking a shortcut that works better:</p><ol><li><strong>Consistency: </strong>Our UI looks and behaves the same everywhere. No more platform-specific quirks!</li><li><strong>Performance: </strong>We get direct access to the GPU through Skia or Impeller, which means our apps can handle complex UI designs and animations like a champ.</li><li><strong>Customization:</strong> We have total freedom to design our UIs, transitions, and interactions however we want. The sky’s the limit!</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5cf94af9178" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back button to exit a flutter app(WillPopScope).]]></title>
            <link>https://medium.com/@chukwudumebiii/back-button-to-exit-a-flutter-app-willpopscope-8182fa38561c?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/8182fa38561c</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Mon, 05 Sep 2022 05:25:16 GMT</pubDate>
            <atom:updated>2022-09-05T05:25:16.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*woQ5KobDnNs8I-u0w0Mu8g.png" /></figure><p>👋Hey! lovelies today we would be looking at a widget in Flutter called WillPopScope. There are times we would be on an app, looking at content that is really interesting then you mistakenly tap the back button, and boom💥 the app closes and when you get back on, everything refreshed on the app and you didn’t get to finish what you were looking at on the app. Flutter looked at this issue and gave a solution, It is called WillPopScope.</p><h3><strong>WillPopScope:</strong></h3><p>This creates a widget that registers a callback to veto attempts by the user to dismiss the enclosing [ModalRoute] like my mentor would say the above is a textbook definition of WillPopSope.</p><p>WillPopScope is simply used to exit an app if the onWillPop function returns true or remains on that page if the onWillPop function returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SKWvxB8gw-sAXs3BKO0cw.png" /></figure><p>Properties of the WillPopScope widget</p><ol><li>Key: Controls how one widget replaces another widget in the tree and also serves as an identifier for a widget.</li><li>child: The widget below in the widget tree.</li><li>onWillPop: Called to veto attempts by the user to dismiss the enclosing <a href="https://api.flutter.dev/flutter/widgets/ModalRoute-class.html">ModalRoute</a>. onWillPop is a callback method that returns a Future value; if true, the screen can be popped; if false, the screen will not be popped out.</li></ol><p>We would be using this code for this topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-n16MD-cXIAySdIl0O7keQ.png" /></figure><h3>STEP 1</h3><p>Wrap the Scaffold widget with the WillPopScope widget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*yD4STuFxciAHhbbDCtweyw.png" /><figcaption>Wrap the Scaffold widget with the WillPopScope</figcaption></figure><h3>STEP 2</h3><p>We notice an error(red lines) on our code that says:</p><p><em>“The named parameter ‘onWillPop’ is required, but there’s no corresponding argument.”</em></p><p>This is because we haven’t added the property onWillPop function.</p><p>The onWillPop is a Future&lt;bool&gt; Function, it uses the async keyword and the bool values True/False</p><p>if the onWillPop function returns false, The back button is unable to exit the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GmRJRpRjk5179E9xqwIitA.png" /><figcaption>function onWillPop return false.</figcaption></figure><p>if the onWillPop function returns true, The back button is able to exit the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uglV6ty623Miu3NPLBFIdg.png" /><figcaption>function onWillPop return true.</figcaption></figure><p>we want a situation were the user has more control over the back button and can choose if they want to exit the app or not, below is a function to achieve our aim.</p><p>Step 2a</p><p>write our function and make it private(_onWillPop). The user is now able to choose to remain on the app or exit the app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mq4r6Pv_8Z2_LAFFZ2zeYw.png" /><figcaption>onWillPop advanced code</figcaption></figure><p>Step 2b</p><p>call the function (_onWillPop) on the onWillPop parameter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-oE8JtvPvXONwcUDE42RQ.png" /><figcaption>calling _onWillPop</figcaption></figure><p>🎉Viooolllaa 🎉 we are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmGO3d0bSAYWoDturYZ5NA.png" /><figcaption>FINISH CODE</figcaption></figure><p>You can visit <a href="https://flutter.dev/">flutter. dev</a> for more details on the WillPopScope Widget.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8182fa38561c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Row vs Column (Flutter)]]></title>
            <link>https://medium.com/@chukwudumebiii/row-vs-column-flutter-28c55feed2ca?source=rss-5af13d5abcba------2</link>
            <guid isPermaLink="false">https://medium.com/p/28c55feed2ca</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[row]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[column]]></category>
            <dc:creator><![CDATA[chukwudumebi]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 12:29:36 GMT</pubDate>
            <atom:updated>2022-09-01T03:34:06.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*z5ay-jLrtdsLo3HY3ylKKg.png" /></figure><p>Row and Column are widgets in flutter. These widgets are used to align children(list of widgets) horizontally and vertically.</p><h3>COLUMN CLASS CONSTRUCTOR</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzsMYNJU49IedzgvQlQruA.png" /></figure><h3>Column</h3><p>It creates a vertical array of children. We have mainAxisAlignment and crossAxisAlignment, MainAxisAlignment aligns its children vertically and CrossAxisAlignment aligns horizontally in that Column.</p><p>Properties of Column widget:</p><ol><li>MainAxisAlignment: How the children should be placed along the main axis</li><li>Children: The widgets below this widget in the tree.</li><li>CrossAxisAlignment: How the children should be placed along the cross axis.</li><li>MainAxisSize: How much space should be occupied on the main axis.</li><li>TextDirection: Determines the order to lay children out horizontally and how to interpret start and end in the horizontal direction.</li><li>TextBaseline: If aligning items according to their baseline, which baseline to use?</li><li>VerticalDirection: Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXmjhI2JUbnWB0lpxSDSmQ.png" /><figcaption><strong>Example of Column widget with container widgets as children.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IghkZuaKft-zU2DZMu4v_A.png" /><figcaption><strong>Output.</strong></figcaption></figure><h3>ROW CLASS CONSTRUCTOR</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1AKqkwJyoMBceW4RAqsyg.png" /></figure><h3>Row</h3><p>This creates a horizontal array of children. We have mainAxisAlignment and crossAxisAlignment, MainAxisAlignment aligns its children horizontally and CrossAxisAlignment aligns vertically in that Column.</p><h3><strong>Properties of Row widget</strong></h3><ol><li>MainAxisAlignment: How the children should be placed along the main axis</li><li>Children: The widgets below this widget in the tree.</li><li>CrossAxisAlignment: How the children should be placed along the cross axis.</li><li>MainAxisSize: How much space should be occupied on the main axis.</li><li>TextDirection: Determines the order to lay children out horizontally and how to interpret start and end in the horizontal direction.</li><li>TextBaseline: If aligning items according to their baseline, which baseline to use?</li><li>VerticalDirection: Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rM7OpQozy4hpE3W9dMlYfg.png" /><figcaption><strong>Example of Row widget with container widgets as children.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Az4h2BJY2V-Rx-21I5cPg.png" /><figcaption><strong>Output.</strong></figcaption></figure><p>You can visit <a href="https://flutter.dev/">flutter. dev</a> for more details on the Row and Column widget.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28c55feed2ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>