<?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 Ibrahim Temitope on Medium]]></title>
        <description><![CDATA[Stories by Ibrahim Temitope on Medium]]></description>
        <link>https://medium.com/@ibrahimtemitope?source=rss-9c8132ce1fdf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5kf9x2nGKouA2mltaLM8UA.jpeg</url>
            <title>Stories by Ibrahim Temitope on Medium</title>
            <link>https://medium.com/@ibrahimtemitope?source=rss-9c8132ce1fdf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:06:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ibrahimtemitope/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[What’s New in Flutter 3.47: What Actually Matters Before You Run flutter upgrade | Topzee]]></title>
            <link>https://medium.com/@ibrahimtemitope/whats-new-in-flutter-3-47-what-actually-matters-before-you-run-flutter-upgrade-topzee-20ccfd1b0412?source=rss-9c8132ce1fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/20ccfd1b0412</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Ibrahim Temitope]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 00:00:42 GMT</pubDate>
            <atom:updated>2026-10-05T13:40:14.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0GIjsbCSRr5nZmIX.png" /></figure><p>Most developers do not read every line of a Flutter release announcement. We update the SDK, let the project rebuild, and only start reading when Xcode, a plugin, or an import decides to ruin the afternoon.</p><p>Flutter 3.47 is worth understanding before running flutter upgrade. Flutter&#39;s design libraries are moving out of the SDK, Apple&#39;s next toolchain changes deployment targets and app lifecycle, and Impeller is becoming the normal desktop renderer.</p><p>This is the practical version of <a href="https://flutter.dev/blog/whats-new-in-flutter-3-47">what changed in Flutter 3.47</a>, what can break, and what I would check on a real project before upgrading.</p><h3>The Short Version</h3><p>If you maintain a production Flutter app, these are the changes to put on your board:</p><ul><li>Material, Cupertino, and their localization code now live in standalone packages.</li><li>Xcode 27 raises Flutter’s minimum iOS and macOS versions and requires the UIScene lifecycle.</li><li>Intel Mac support and CocoaPods-based plugin integration are both approaching the end of their useful lives.</li><li>Impeller is now the default renderer across macOS, Windows, and Linux.</li><li>Widget Previews are stable and more practical for daily component work.</li></ul><h3>Before You Upgrade: Audit the Apple Side</h3><p>Flutter 3.47 is preparing projects for Xcode 27, iOS 27, and macOS 27. This is not just a new simulator runtime. There are deployment and lifecycle changes that can affect whether an app builds and whether it launches.</p><h3>Your Minimum OS Versions Are Moving</h3><p>Flutter 3.47 raises the supported minimums:</p><p>Before upgrading, check your analytics. If your product still has meaningful usage on iOS 13 or 14, this is a product decision as well as a build setting. Find out how many users will stop receiving releases and whether other teams need advance notice.</p><p>Inspect the deployment target in Xcode, your Podfile, CI settings, and build scripts too. Another environment may still carry an older value.</p><h3>Xcode 27 Requires the UIScene Lifecycle</h3><p>This is the change I would test most carefully. UIKit apps built with the iOS 27 SDK must use the UIScene lifecycle. Without it, an app can build and then fail at startup.</p><p>Flutter’s tooling migrates ordinary projects during the build, so a standard app may require no manual work. The word “ordinary” matters. Review the native side if your AppDelegate contains custom initialization, notification handling, deep-link logic, SDK setup, or lifecycle callbacks. Do the same for plugins that still expect the older application lifecycle.</p><p>My practical test would be:</p><ol><li>Upgrade on a separate branch.</li><li>Build with Xcode 27, not only the Flutter CLI.</li><li>Cold-launch on an iOS 27 simulator and a physical device when available.</li><li>Exercise push-notification taps, universal links, background-to-foreground transitions, and any SDK initialized in AppDelegate.</li><li>Inspect older or privately maintained plugins for legacy lifecycle assumptions.</li></ol><p>Automatic migration cannot prove that custom native behavior still runs at the correct lifecycle point.</p><h3>Intel Mac Builds Are on Borrowed Time</h3><p>Flutter has stopped running automated tests on Intel Mac hardware. The CLI now warns when the host is Intel or when a macOS build targets both Intel and Apple Silicon; those warnings are expected to become errors later.</p><p>Check CI runners, release machines, and developer laptops now. An old Intel Mac may still be signing production builds somewhere.</p><p>You can opt into ARM64-only macOS output today:</p><p>Before enabling it, confirm whether Intel users still matter. Enabling it early for an Apple-Silicon-only team gives you time to find pipeline assumptions before Flutter enforces the change.</p><h3>Swift Package Manager Is Becoming the Expected Path</h3><p>The plugin ecosystem’s move from CocoaPods to Swift Package Manager is nearly complete: 92 of the top 100 iOS plugins have migrated. CocoaPods is now in maintenance mode, and Flutter is clearly treating SwiftPM as the future integration path.</p><p>If you previously disabled SwiftPM because an important plugin did not support it, retest that decision:</p><p>Packages that remain on the old path will eventually stop working and can receive a lower pub.dev score. App teams should audit private plugins and abandoned dependencies first.</p><h3>Material and Cupertino Are Now Standalone Packages</h3><p>Flutter’s Material and Cupertino widget libraries have reached version 1.0 as material_ui and cupertino_ui on pub.dev. They are opt-in dependencies instead of code tied directly to the core SDK.</p><p>The benefit is release independence. Widget fixes can ship weekly instead of waiting for Flutter’s quarterly stable release, so a small UI fix no longer requires a full framework upgrade.</p><p>Migration is designed to be mechanical:</p><p>That command updates imports automatically. There was an early issue where the migration could change source files without correctly adding dependencies to pubspec.yaml. If that happens, add them yourself and run the migration again:</p><p>Run tests after the rewrite, especially golden tests and custom themes. Package versions are now an explicit part of your UI stack.</p><p>For gradual migration, MaterialUiCompatibilityBridge lets a converted app coexist with dependencies still using old SDK imports. Treat it as temporary scaffolding while the ecosystem catches up.</p><p>The old bundled libraries are scheduled for formal deprecation in the November Fall stable release. In other words, you do not have to migrate every app this morning, but ignoring the move indefinitely is not a plan.</p><h3>Localizations Move Too</h3><p>flutter_localizations has been separated along the same design-library boundary. Material translations live with material_ui, and Cupertino translations live with cupertino_ui.</p><p>The setup becomes simpler for apps using both design systems. GlobalMaterialLocalizations.delegates now includes the Material, Cupertino, and Widgets delegates, so you no longer need to list all three individually:</p><p>For multilingual apps, test framework controls such as date pickers in less frequently used locales after migration.</p><h3>Impeller Is Now the Desktop Default</h3><p>Flutter 3.47 makes Impeller the default renderer on macOS, Windows, and Linux. Impeller prepares a known set of shaders ahead of runtime and targets modern graphics APIs such as Metal and Vulkan. The practical result is fewer first-run animation pauses caused by compiling a shader at the moment it is first needed.</p><p>Desktop teams should test custom shaders, embedded platform views, animation-heavy screens, and older graphics hardware. Flutter still provides ways to switch back to Skia for now, but those escape hatches are being phased out. If Impeller exposes a rendering problem, file a reproducible bug instead of building a long-term plan around opting out.</p><p>Flutter Widget Previews are now stable. They let you render and adjust an individual component without launching the complete app, navigating to the right screen, and reproducing enough state to see one button or card.</p><p>The stable version starts faster by caching project setup in .widget_preview/. It also supports more flexible layered themes, which helps when checking components across brand, brightness, or accessibility variants. For web widgets, assets from the project&#39;s web/ directory are synchronized automatically into the preview environment.</p><p>It will not replace device testing, but it shortens the UI loop for components with many visual states.</p><h3>Web and GenUI: Useful, but Not the Main Upgrade Risk</h3><p>Flutter continues preparing to make Wasm the default web target. It remains opt-in in 3.47:</p><p>If your web app still depends directly on dart:html, start moving toward package:web; the older interop path is not supported by the Wasm target.</p><p>genui 0.10.0 also expands A2UI protocol support, including shared protocol types and client-side functions for validation or derived values.</p><h3>Smaller Fixes You Will Actually Notice</h3><ul><li>Android virtual-keyboard events no longer leave modifier keys such as Shift stuck.</li><li>iOS signing output now shows both the selected Team ID and Team Name.</li><li>Provisioning-profile failures provide clearer diagnostic messages.</li><li>Mobile text-selection handles behave better during small scroll movements and near top-edge menus.</li><li>ImageIcon can preserve an asset&#39;s original colours with useOriginalColors: true.</li></ul><p>None of these sells a release on its own. Together, they remove the kind of small friction that consumes real debugging time.</p><h3>My Flutter 3.47 Upgrade Order</h3><p>I would not begin with flutter upgrade. I would begin by creating a branch, recording current production deployment targets, checking the CI machine architecture, and listing plugins with native iOS code.</p><p>Then I would upgrade, migrate the design packages, run static analysis and tests, and build every supported platform. For iOS, I would explicitly test lifecycle-dependent behavior under Xcode 27. For desktop, I would compare important screens under Impeller. For web, I would test Wasm separately rather than quietly changing the production target in the same release.</p><p>Flutter 3.47 is a healthy update because it separates framework concerns and moves several platforms toward their next long-term foundations. It is also an update where a green Dart test suite does not tell the whole story. Native lifecycle, deployment support, plugin packaging, and rendering all deserve attention.</p><p>And Xcode 27 has enough consequences beyond this overview to deserve a dedicated post of its own. That one is coming soon; for now, treat the Apple section above as the part to complete before release day, not the part to bookmark and forget.</p><p><em>Originally published at </em><a href="https://topzeedev.com/blog/mobile-development/whats-new-flutter-3-47/"><em>https://topzeedev.com</em></a><em> on September 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20ccfd1b0412" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What ‘Metadata’ Really Means in Backend (Stripe, Django, Firebase)]]></title>
            <link>https://medium.com/@ibrahimtemitope/what-metadata-really-means-in-backend-stripe-django-firebase-aab1abefe360?source=rss-9c8132ce1fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/aab1abefe360</guid>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[stripe-api]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ibrahim Temitope]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 14:08:50 GMT</pubDate>
            <atom:updated>2026-06-15T14:08:50.629Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhndmDyU8ARnIcEZrSQPMg.png" /></figure><p>I’ve been using metadata for years without actually knowing what it meant.</p><p>I saw it in Django.<br>I saw it in Stripe.<br>I use Firebase almost every day and never realized I was using it there too.</p><p>I used it because tutorials used it. Because examples had it. Because it “worked”.</p><p>But if you had asked me:</p><blockquote><em>“What is metadata in backend?”</em></blockquote><p>I genuinely would not have had a clear answer.</p><p>Until recently.</p><p>And when it finally clicked, I realized something interesting:</p><p><strong>Metadata is everywhere in backend development, and most of us use it without understanding the real purpose.</strong></p><p>This post is the explanation I wish I had years ago.</p><p><strong>By the end of this post, you’ll be able to spot metadata in any backend system, and use it intentionally.</strong></p><p><strong>The simple definition</strong></p><blockquote><strong>Metadata is extra information you attach to something, not for the main data, but for your backend logic later.</strong></blockquote><p>Note:<br><strong>It’s not for the user.<br>It’s for you.</strong></p><p><strong>Where I first saw it — Django (class Meta)</strong></p><p>If you’ve used Django, you’ve written this before:</p><pre>class Product(models.Model):<br>    name = models.CharField(max_length=100)</pre><pre>    class Meta:<br>        ordering = [&#39;name&#39;]</pre><p>That class Meta is literally <strong>metadata</strong>.</p><p>Notice:</p><ul><li>It’s not part of the product</li><li>It’s not stored as product data</li><li>It’s not shown to users</li><li>It only controls how Django behaves</li></ul><p>That’s metadata for the framework.<br>It’s extra information attached to the model so Django knows how to handle it.</p><p><strong>Where I saw it again — Stripe Checkout Session</strong></p><p>Then I started working with Stripe in Node.js and saw this:</p><pre>const session = await stripe.checkout.sessions.create({<br>  line_items: [<br>    {<br>      price_data: {<br>        currency: &#39;usd&#39;,<br>        product_data: {<br>          name: &#39;Premium Plan&#39;,<br>          metadata: {<br>            userId: &#39;123&#39;,<br>            plan: &#39;premium&#39;,<br>            internalOrderId: &#39;ORD_8892&#39;<br>          }<br>        },<br>        unit_amount: 5000,<br>      },<br>      quantity: 1,<br>    },<br>  ],<br>  mode: &#39;payment&#39;,<br>  success_url: &#39;...&#39;,<br>  cancel_url: &#39;...&#39;,<br>});</pre><p>At first, I just copied this from examples.</p><p>But here’s what’s happening:<br><strong>Stripe does not care about that metadata.<br>Stripe just stores it and gives it back to you later.</strong></p><p>When the webhook fires after payment:</p><pre>const session = event.data.object;</pre><pre>const userId = session.metadata.userId;<br>const plan = session.metadata.plan;</pre><blockquote>Now I know: <br>which user paid, and what they paid for — in my own database.</blockquote><p>Stripe doesn’t know my database.<br><strong>Metadata is the bridge between Stripe’s world and my backend world.</strong></p><p><strong>❌ Mistake:</strong> Storing the user’s full name and email in Stripe metadata.<br><strong>✅ Fix:</strong> Store only userId. Look up the rest from your own DB when the webhook arrives.</p><p><strong>Where I didn’t realize I was using it — Firebase Custom Claims</strong></p><p>If you use Firebase Auth, you’ve probably done this:</p><pre>admin.auth().setCustomUserClaims(uid, { role: &quot;admin&quot; });</pre><p>Later in your app or backend:</p><pre>request.auth.token.role</pre><p>Firebase doesn’t use that role for anything. <strong>You do.</strong></p><p>That’s metadata attached to the user token so your backend can make decisions later.</p><p>Same concept again.</p><p><strong>Even HTTP has metadata</strong></p><p>HTTP headers are also metadata.</p><pre>Authorization: Bearer &lt;token&gt;<br>Content-Type: application/json</pre><p>They are not the main request data.<br>They tell the server <em>who you are</em>, not <em>what you want</em>. Same idea.</p><pre>| Place     | Metadata Example        | Who Uses It? <br>|---------- |-------------------------|--------------<br>| Django    | `class Meta`            | Django framework <br>| Stripe    | `metadata` object       | Your backend in webhook <br>| Firebase  | Custom claims           | Your auth logic <br>| HTTP      | Headers                 | Server logic <br>| JWT       | Payload                 | Your backend</pre><p>Different names.<br>Same idea.</p><p><strong>The mental model that made it click for me</strong></p><p><strong>Metadata is how the backend remembers <em>why</em> something happened.</strong></p><blockquote>Payment success &gt; metadata tells you: user X, plan Y</blockquote><blockquote>User logged in &gt; metadata tells you: role = admin</blockquote><blockquote>Django query &gt; metadata tells it: order by name</blockquote><p>When Stripe tells you “payment successful”, metadata tells you <em>for who</em> and <em>for what</em>.<br>When Firebase authenticates a user, metadata tells you <em>what role they have</em>.<br>When Django queries a model, metadata tells it <em>how to behave</em>.</p><p><strong>Why this matters</strong></p><p>Because once you understand this, you stop blindly copying it from tutorials.</p><p>You start using metadata <strong>intentionally</strong>:</p><ul><li>To link external services back to your database</li><li>To carry context across systems</li><li>To make your backend smarter without polluting main data</li></ul><p>You start thinking:<br><em>“What information will I need later when this comes back to me?”</em></p><p>That’s when you know you truly understand metadata.</p><p><strong>The one line you should not forget</strong></p><p><strong>Metadata is not part of the data, it’s context for the backend.</strong></p><p>Once you see that, you realize: you’ve been using it everywhere all along.</p><p>And now, finally, <strong>on purpose</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aab1abefe360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dart Class Types Demystified: A Complete Guide for Flutter Developers]]></title>
            <link>https://medium.com/@ibrahimtemitope/dart-class-types-demystified-a-complete-guide-for-flutter-developers-cafa2c5f481b?source=rss-9c8132ce1fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/cafa2c5f481b</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ibrahim Temitope]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 10:41:38 GMT</pubDate>
            <atom:updated>2026-04-02T11:03:58.988Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Master abstract, sealed, interface, and everything in between with practical Flutter examples</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4OqAvAyye0R-UkO_dHBJg.png" /></figure><p>When I first started building Flutter applications, I didn’t really understand classes.</p><p>I’d watch tutorials and see developers use <strong><em>abstract</em></strong> here, <strong><em>implements</em></strong> there, and occasionally throw in a <strong><em>sealed</em></strong> class that looked magical. I’d copy their code, it would work, and I’d move on. But deep down, I had no idea <em>why </em>they chose one class type over another.</p><p>I believe this sounds familiar.</p><p>The truth is, understanding Dart class types isn’t just about writing code that compiles, it’s about writing code that scales. The wrong choice today becomes technical debt tomorrow.</p><p>With Dart 3.0 introducing powerful new class modifiers like <strong><em>sealed</em></strong>, <strong><em>interface</em></strong>, and <strong><em>base</em></strong>, Dart finally gave us the tools to design truly maintainable architectures. No more guesswork. No more fragile base classes. Just clear intent backed by compile-time guarantees.</p><p>In this guide, I’ll break down <strong>every Dart class type</strong>, from the basics to advanced modifiers. We’ll start with simple classes and build up to a <strong>complete real-world Flutter example</strong> where we use all these concepts together.</p><p>Let’s demystify Dart classes once and for all.</p><ol><li><strong>Regular Classes: The Foundation<br></strong>These are the simplest and most flexible class type in Dart. They can be instantiated directly, extended, or implemented by anyone, anywhere. Regular classes are perfect for modeling data and creating utility functions.</li></ol><pre>class User {<br>  String name;<br>  int age;<br>  <br>  User(this.name, this.age);<br>  <br>  void sayHello() {<br>    print(&quot;Hi, I&#39;m $name&quot;);<br>  }<br>}</pre><p><strong>when to use:</strong></p><ul><li>Simple data models</li><li>Utility classes</li></ul><p><strong>Limitations:</strong></p><ul><li>No contracts</li><li>No restrictions</li></ul><p>2. <strong>Abstract Classes: The Blueprint<br></strong>Abstract classes can be both extended (inheritance) AND implemented (interface), offering the flexibility of shared code with forced contracts.</p><pre>abstract class Animal {<br>  String name;<br>  Animal(this.name);<br>  <br>  void makeSound(); // Abstract, must be implemented<br>  <br>  void sleep() {    // Concrete<br>    print(&#39;$name is sleeping&#39;);<br>  }<br>}</pre><p><strong>When to use:<br></strong>Base classes with shared functionality</p><p><strong>Real-world example:</strong><br>Repository pattern base classes</p><p>3. <strong>The Interface (Pre vs Post Dart 3.0)</strong><br>3.1 <strong>Old way: Abstract Classes as Interfaces<br></strong>Before Dart 3.0, developers used <em>abstract class</em> to create interfaces:</p><pre>abstract class Repository {<br>  Future&lt;List&lt;User&gt;&gt; getUsers();<br>  Future&lt;void&gt; saveUser(User user);<br>}<br><br>class UserRepository implements Repository {<br>  @override<br>  Future&lt;List&lt;User&gt;&gt; getUsers() async { ... }<br>  <br>  @override<br>  Future&lt;void&gt; saveUser(User user) async { ... }<br>}</pre><p>3.2 <strong>New Way: Explicit Interface Classes</strong>(Dart 3.0+)<br>Dart 3.0 introduced dedicated interface types for clearer intent:</p><pre>abstract interface class Vehicle {<br>  void start();<br>  void stop();<br>  void accelerate();<br>}<br><br>interface class ApiClient {<br>  final String baseUrl;<br>  ApiClient(this.baseUrl);<br>  <br>  Future&lt;Response&gt; get(String endpoint) {<br>    return http.get(Uri.parse(&#39;$baseUrl$endpoint&#39;));<br>  }<br>}</pre><p>Differences between interface and the abstract interface class:</p><ul><li>abstract interface class: uses pure contract, so you can only implement the class</li><li>interface class: this allows for default implementations, you can both implement and extend the class.</li></ul><p>4. <strong>Sealed Classes: Exhaustive Hierarchies<br></strong>Here the compiler knows every possible subtype at compile time. When you use a <strong><em>switch</em></strong><em> </em>expression, Dart forces you to handle every single case. If you miss one, you get a compiler error and not a runtime crash in this case.</p><pre>// All possible states are right here, in one place<br>sealed class NetworkState { }<br><br>final class Loading extends NetworkState { }<br><br>final class Success extends NetworkState { <br>  final List&lt;String&gt; data;<br>  Success(this.data);<br>}<br>final class Error extends NetworkState { <br>  final String message;<br>  Error(this.message);<br>}<br><br>// Dart knows there are 3 possibilities so if we miss the error state, we get:<br>// The type &#39;NetworkState&#39; isn&#39;t exhaustively matched by the switch cases since it doesn&#39;t match the pattern &#39;Error()&#39;.<br>// Try adding a default case or cases that match &#39;Error()&#39;.<br>void handleState(NetworkState state) {<br>  switch (state) {<br>    case Loading(): // Handled correctly<br>    case Success(): // Handled correctly<br>    // COMPILER ERROR: Missing Error case<br>  }<br>}<br><br>// correct version<br>void handleState(NetworkState state) {<br>  switch (state) {<br>    case Loading():<br>    case Success():<br>    case Error():<br>  }<br>}<br></pre><p><strong>Perfect for:</strong></p><ul><li>UI states (Loading, Success, Error, Empty)</li><li>API results (Ok, Err, Loading)</li><li>Navigation events (Home, Profile, Settings)</li><li>Any finite set of possibilities</li></ul><p><strong>Benefits:</strong></p><ul><li>Compile-time safety</li><li>Exhaustive checking</li></ul><p>5. <strong>Class Modifiers:</strong> <strong>Fine-Grained Control<br></strong>These classes allow you to precisely decide who can extend, implement, or use your class, giving you surgical precision over your API surface instead of an all-or-nothing approach.</p><p>5.1 <strong>Base Classes</strong><br>These classes can only be extended within the same library (file) and can’t be implemented outside the library (file).</p><pre>base class Calculator {<br>  int add(int a, int b) =&gt; a + b;<br>}<br><br>// Allowed - extends in same library(file)<br>class ScientificCalc extends Calculator { }<br><br>// Not allowed - cannot implement base class<br>class MockCalc implements Calculator { }</pre><p>5.2 <strong>Final Classes</strong><br>These classes cannot be extended or implemented anywhere.</p><pre>final class Configuration {<br>  static const apiUrl = &#39;https://api.example.com&#39;;<br>}</pre><p>5.3 <strong>Mixin Classes</strong><br>Mixins have reusable functionality for logging, validation, and formatting. Use the <strong><em>with</em></strong> keyword to reuse the mixin.</p><pre>mixin Logger {<br>  void log(String message) {<br>    print(&#39;LOG: $message&#39;);<br>  }<br>}<br><br>class UserService with Logger {<br>  void createUser() {<br>    log(&#39;Creating user...&#39;);<br>  }<br>}</pre><p>Perfect for:</p><ul><li>Base: Repository patterns, service classes designed for inheritance</li><li>Final: Configuration, constants, singleton services</li><li>Mixin: Logging, validation, formatting , any cross-cutting concern.</li></ul><p>6. <strong>Enum Classes (Dart 3.0+)<br></strong>They<strong> </strong>can have methods, constructors, and fields, turning simple value lists into powerful, behavior-rich types.</p><pre>enum PaymentStatus {<br>  pending,<br>  completed,<br>  failed;<br>  <br>  // methods<br>  bool get isFinished =&gt; this == completed || this == failed;<br>  // Can have formatted values<br>  String get displayName =&gt; name.toUpperCase();<br>  // Can have custom constructors (with fields)<br>  const PaymentStatus({this.icon});<br>  final String? icon;<br>}<br><br>// Usage with methods<br>void handlePayment(PaymentStatus status) {<br>  if (status.isFinished) {<br>    print(&#39;Payment ${status.displayName}&#39;);<br>  }<br>}</pre><p>Perfect for:</p><ul><li>HTTP status codes with helper methods</li><li>State enums with validation logic</li><li>Any enum that needs behavior</li></ul><p>Benefits:</p><ul><li>Self-contained logic</li><li>Rich data types</li><li>Type-safe alternative to constant classes</li></ul><p><strong>Comparison Matrix</strong></p><pre>| Class Type         | Extend | Implement | Instantiate | Primary Use              <br>|--------------------|--------|----------|------------|--------------------------<br>| Regular            | yes    | yes      | yes        | Simple models            <br>| Abstract           | yes    | yes      | no         | Base classes             <br>| Abstract Interface | no     | yes      | no         | Pure contracts           <br>| Interface          | yes    | yes      | yes        | Contracts with defaults  <br>| Sealed             | no*    | no*      | no         | Restricted hierarchies   <br>| Base               | yes*   | no       | yes        | Controlled inheritance   <br>| Final              | no     | no       | yes        | Immutable utilities      <br>| Mixin              | N/A    | N/A      | no         | Code reuse               </pre><p><strong>Real-World Flutter Example: Putting It All Together</strong></p><ol><li><strong>Auth Contract</strong></li></ol><pre>abstract interface class AuthService {<br>  Stream&lt;User?&gt; get userChanges;<br>  Future&lt;User&gt; signIn(String email, String password);<br>  Future&lt;void&gt; signOut();<br>}</pre><p>2.<strong>Firebase Implementation</strong></p><pre>final class FirebaseAuthService implements AuthService {<br>  @override<br>  Stream&lt;User?&gt; get userChanges =&gt; <br>      FirebaseAuth.instance.userChanges();<br>  <br>  @override<br>  Future&lt;User&gt; signIn(String email, String password) async {<br>    final credential = await FirebaseAuth.instance.signInWithEmailAndPassword(<br>          email: email,<br>          password: password,<br>    );<br>    return credential.user!;<br>  }<br>  <br>  @override<br>  Future&lt;void&gt; signOut() =&gt; FirebaseAuth.instance.signOut();<br>}</pre><p>3. <strong>UI State Management (Sealed Classes)</strong></p><pre>sealed class AuthState{}<br><br>final class AuthInitial extends AuthState{}<br><br>final class AuthLoading extends AuthState{}<br><br>final class AuthAuthenticated extends AuthState{<br>  final User user;<br>  AuthAuthenticated(this.user);<br>}<br><br>final class AuthError extends AuthState{<br>  final String message;<br>  AuthError(this.message);<br>}<br></pre><p>4. <strong>Controller / ViewModel</strong></p><pre>class AuthController {<br>  final AuthService _authService;<br>  <br>  AuthController(this._authService);<br>  <br>  final _state = ValueNotifier&lt;AuthState&gt;(AuthInitial());<br>  ValueListenable&lt;AuthState&gt; get state =&gt; _state;<br>  <br>  Future&lt;void&gt; login(String email, String password) async {<br>    _state.value = AuthLoading();<br>    <br>    try {<br>      final user = await _authService.signIn(email, password);<br>      _state.value = AuthAuthenticated(user);<br>    } catch (e) {<br>      _state.value = AuthError(e.toString());<br>    }<br>  }<br>}</pre><p>5.<strong> UI Layer</strong></p><pre>class LoginScreen extends StatelessWidget {<br>  final AuthController controller;<br>  <br>  @override<br>  Widget build(BuildContext context) {<br>    return ValueListenableBuilder&lt;AuthState&gt;(<br>      valueListenable: controller.state,<br>      builder: (_, state, __) {<br>        return switch (state) {<br>          AuthInitial() =&gt; LoginForm(),<br>          AuthLoading() =&gt; CircularProgressIndicator(),<br>          AuthAuthenticated(user: var user) =&gt; HomeScreen(user: user),<br>          AuthError(message: var msg) =&gt; ErrorSnackbar(msg),<br>        };<br>      },<br>    );<br>  }<br>}</pre><p><strong>Best Practices and Guidelines</strong></p><p>1. Start with the most restrictive type<br>Begin with the strictest class modifier that fits your use case. You can always loosen restrictions later, but tightening them after others have started using your code can break existing implementations. Ask yourself: Does this need to be extended? If not, make it <em>final</em></p><p>2. Prefer <em>interface class</em> for public APIs<br>When designing APIs that other developers will use, <em>interface class </em>(or <em>abstract</em> <em>interface class</em>) prevents the &quot;fragile base class&quot; problem. If you later add a new method to your interface, implementations will be forced to handle it - no silent failures.</p><p>3. Use sealed classes for UI states<br>UI states like loading, success, error, and empty are finite sets. Sealed classes ensure you’ve handled every possible state in your UI logic. If you add a new state later, the compiler will remind you to update every screen that uses it.</p><p>4. Use mixins for cross-cutting concerns<br>When you need to share functionality across unrelated classes, like logging, validation, or formatting, mixins are the tool. They give you reusable code without the complexity of deep inheritance chains.</p><p>5. Use <strong><em>final</em></strong> for utilities and constants<br>Configuration classes, constant values, and utility functions should be <strong><em>final</em></strong>. This signals to other developers that these classes aren&#39;t meant to be extended or implemented, preventing misuse and keeping your API stable.</p><p><strong>Migration Guide (Pre-Dart to 3.0+)</strong></p><ul><li>Replace interface-like abstract classes with <em>abstract interface class</em></li><li>Use <em>interface class</em> for stable APIs</li><li>Convert state enums: <em>sealed class</em> for richer data</li><li>Add <em>base</em> to classes designed for inheritance</li></ul><p><strong>Conclusion</strong></p><p>Dart has evolved into a powerful language with fine-grained control over class design.</p><p>Choosing the right class type isn’t just about syntax, it’s about building scalable, maintainable, and predictable applications.</p><p>Master these tools, and your Flutter architecture will level up significantly.</p><p>If you found this helpful:</p><ul><li>Give it a clap</li><li>Drop your thoughts in the comments</li><li>Follow for more Flutter &amp; Dart content 💙</li></ul><p><strong>Question for you:</strong><br>Which Dart class type do you use the most in your projects?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cafa2c5f481b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile Development Platforms, and It’s Software Architecture Patterns]]></title>
            <link>https://medium.com/@ibrahimtemitope/mobile-development-platforms-and-its-software-architecture-patterns-28cf5844339c?source=rss-9c8132ce1fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/28cf5844339c</guid>
            <dc:creator><![CDATA[Ibrahim Temitope]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 22:43:12 GMT</pubDate>
            <atom:updated>2024-06-29T22:43:12.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HEzmPkhk4NJcPUKI" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’m a passionate software engineer, highly motivated to develop apps that follows the best practice to deliver excellent user experiences. I’ve always had interest in software engineering, but at first, I was not sure of which platform to start with. At that time, I only knew about HTML and JavaScript which are mainly used for web development. My curiosity about mobile app development began when I saw a fun quiz app on my mom’s Android device. This led me to research and learn about various platforms for mobile development.</p><p>During my research, I discovered that there’re native and cross-platform solutions for developing mobile apps, I got to understand the native platform are used to develop apps for specific devices depending on the framework you decide to work with. For instance, learning java or Kotlin for android development, while objective-C or swift is used for developing apps for iOS development. I also found out that cross-platform can be easily used to develop for both android and iOS devices using a single code base.</p><p>In the sections below, I will discuss the different mobile application platforms and let you guys know the platform I eventually start my mobile development journey with and why I made that decision.</p><p><strong>Mobile Application Development Platforms</strong></p><p>Based on my research, the most popular mobile application development platforms fall into two main categories:</p><p><strong>Native App Development Platforms</strong></p><p>these platforms are designed to build applications for a specific mobile operating system, such as iOS or Android. Native app development platforms provide access to native APIs and tools for creating apps that are optimized for performance and user experience, Native development platforms majorly involves developing applications for android and iOS devices.</p><p>· <strong>Android Development</strong>: the programming language used in developing for android devices is either Java or Kotlin by using tools such as Android studio integrated development environment IDE, and jetpack framework can also be used in building native android user interface.</p><p>· <strong>iOS Development: </strong>while developing<strong> </strong>for iOS devices, Xcode integrated environment is used, and language such as Objective-C or Swift is used in building for building the apps while using tools like SwiftUI framework for building the app user interface. iOS development has a limitation of using MacBook for it’s development, which is a limitation for windows device users like me. It will be difficult for me to learn iOS platform development. But it is easy for someone with MacBook to learn android development platform language and use it’s tools aswell, as it is compatible for it.</p><p><strong>Cross-Platform App Development Platforms</strong></p><p>These are platforms that allow developers to build applications that can run on multiple mobile operating systems using single codebase. This helps in saving time to learn two different languages for various platforms which helps in saving time and effort in building apps for different platforms and it also helps in saving cost of hiring different platform developers for businesses and companies. This also helps in reaching wider audience without having to develop two or more different version of an app. Cross-Platform Development Platforms include: React Native, Flutter and Xamarin.</p><p>· <strong>React Native</strong>: This is an open-source platform created by Facebook, which involves creating applications for both Android and iOS devices using JavaScript and React which can be used in multiple platforms.</p><p>· <strong>Flutter: </strong>this is also an open-source mobile app development framework developed by Google, by using Dart programming language in the development of multi-platform apps. This framework allows applications to be natively compiled for Android, iOS, Mac, Windows and Linux with a single code base.</p><p>· <strong>Xamarin</strong>: this is a cross-platform development owed by Microsoft, which allows developers to build native Android, iOS, and windows applications using a single code-base by using C# programming language and tools such as.Net framework in developing the applications.</p><p><strong>Common Software Architecture Patterns Used In Mobile Development Platforms</strong></p><p>The common software architecture patterns for mobile development are Model-View-Controller (MVC), Model-View-Presenter (MVP), and Model-View-ViewModel (MVVM).</p><p><strong>1.</strong> <strong>Model-View-Controller (MVC) Architecture:</strong> This is a common architectural design pattern that organizes an application’s logic into three distinct design layers, for which each of the layers carries out a specific set of tasks, they include:</p><p>· <strong>Model</strong>: Responsible for data logic, storage, retrieval, and validation.</p><p>· <strong>View</strong>: Provides the user interface for data display and user interaction.</p><p>· <strong>Controller</strong>: Processes user input and controls data flow between Model and View layers.</p><p><strong>2.</strong> <strong>Model-View-Presenter (MVP) Architecture</strong>: is an architectural pattern that separates an application into three main components, it is similar to MVC, but it puts more responsibility on the Presenter to manage the interaction between Model and View. The components are as follows:</p><p>· <strong>Model</strong>: Handles data and business logic, similar to MVC.</p><p>· <strong>View</strong>: Responsible for displaying data and capturing user input. In MVP, the View is typically more passive than in MVC.</p><p>· <strong>Presenter</strong>: Acts as an intermediary between Model and View. It retrieves data from the Model, formats it, and sends it to the View for display. It also handles user input from the View and updates the Model accordingly.</p><p><strong>3.</strong> <strong>Model-View-ViewModel (MVVM) Architecture</strong>: this is a widely used design model in mobile development, usually implemented in frameworks like Android’s Jetpack and SwiftUI. Its purpose is to separate the application into three parts: Model, View, and ViewModel.</p><p>· <strong>Model</strong>: Manages data and business logic, similar to MVC and MVP.</p><p>· <strong>View</strong>: Represents the UI elements and is responsible for displaying data.</p><p>· <strong>ViewModel</strong>: Acts as a interface between the Model and View. It prepares and manages data for the View, handles user interactions, and updates the Model as needed.</p><p><strong>Pros and Cons of Mobile Development Architecture Patterns</strong></p><p>Here’s a summary of the pros and cons for the three mobile development architecture patterns we discussed:</p><p><strong>1.</strong> <strong>Model-View-Controller (MVC)</strong></p><p><strong>Pros</strong>:</p><p>· Simple and widely understood</p><p>· Clear separation of concerns</p><p>· Easier to maintain and modify individual components</p><p>· Supports rapid development</p><p><strong>Cons</strong>:</p><p>· Controller can become bloated over time</p><p>· Tight coupling between View and Controller</p><p>· Testing can be challenging, especially for UI logic</p><p><strong>2.</strong> <strong>Model-View-Presenter (MVP)</strong></p><p><strong>Pros</strong>:</p><p>· Improved testability, especially for UI logic</p><p>· Clear separation of concerns</p><p>· More modular and maintainable code</p><p>· Better for complex UIs than MVC</p><p><strong>Cons</strong>:</p><p>· Can lead to a lot of interfaces</p><p>· More verbose than MVC</p><p>· Presenter can become complex in large applications</p><p><strong>3.</strong> <strong>Model-View-ViewModel (MVVM)</strong></p><p><strong>Pros</strong>:</p><p>· Strong separation of concerns</p><p>· Excellent for data binding</p><p>· Highly testable, including UI logic</p><p>· Supports reactive programming well</p><p>· Good for complex UIs and data interactions</p><p><strong>Cons</strong>:</p><p>· Can be overkill for simple applications</p><p>· Learning curve can be steep</p><p>· ViewModel can become bloated in complex apps</p><p>· Debugging data bindings can be challenging</p><p><strong>My Choice Of Mobile Application Platform And Reason For My Decision</strong></p><p>After researching various platforms, I decided to start my mobile development journey with Flutter, a cross-platform framework developed by Google. There were several reasons for this choice:</p><p>1. Flutter is a single code base framework which allows me to develop apps for android and iOS, despite the fact that I’m yet to have a MacBook, I can always reuse the code I write on my windows when I get a MacBook and make little modifications in the code for my app to work perfectly on iOS devices.</p><p>2. Flutter has a high performance, which provides a smooth user experience.</p><p>3. It has hot reload feature which helps in speeding up my development process, I won’t have to restart my app build after every changes in my code.</p><p>My journey with flutter mobile platform for development has been really exciting, I look forward to continue to improve my skill and building iOS apps aswell.</p><p>Therefore, <a href="https://hng.tech/internship"><em>HNG Internship</em></a>(<a href="https://hng.tech/internship">https://hng.tech/internship</a>) and <a href="https://hng.tech/hire"><em>HNG Hire</em></a> (<a href="https://hng.tech/hire">https://hng.tech/hire</a>). is offering an incredible opportunity for me to apply the knowledge and skills I’ve gained from using Flutter development platform in a real world setting. This program is known for it’s collaborative environment, where interns work on projects together as a team, I look forward to</p><p>1. Gaining more experience by working on diverse projects that will challenge and improve my development skills</p><p>2. Work with other developers as a team, share knowledge and learn from each other.</p><p>3. Be able to benefit from the guidance of experienced mentors who can provide valuable insights and help me navigate my career path.</p><p>4. And also make meaningful contributions to projects that will be used by real users, enhancing my portfolio and showcasing my abilities.</p><p>Mobile app development offers diverse platforms and architectural patterns, from native (Android, iOS) to cross-platform solutions (React Native, Flutter, Xamarin). Architectural patterns like MVC, MVP, and MVVM provide various approaches to code organization and logic management. Understanding these is crucial for creating efficient, user-friendly apps. The HNG Internship provides a valuable opportunity to apply this knowledge, collaborate, and gain practical experience. It plays a vital role in developing the next generation of mobile developers, enhancing technical skills and contributing to the mobile app ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28cf5844339c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>