<?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 Mohamed Ebrahim on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Ebrahim on Medium]]></description>
        <link>https://medium.com/@mohamedebrahim7?source=rss-80cbd510867b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3Oy-F2Kg68OVl64OKcUPtw.jpeg</url>
            <title>Stories by Mohamed Ebrahim on Medium</title>
            <link>https://medium.com/@mohamedebrahim7?source=rss-80cbd510867b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:47:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamedebrahim7/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[Logical Pixel vs Physical Pixel: A Simple Guide]]></title>
            <link>https://medium.com/@mohamedebrahim7/logical-pixel-vs-physical-pixel-a-simple-guide-0a374fe2e8e7?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a374fe2e8e7</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:01:02 GMT</pubDate>
            <atom:updated>2026-11-17T17:01:02.820Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKLi_7SncmkE3NrselQ3yg.png" /></figure><h3>1. What is a physical pixel?</h3><p>A physical pixel is a tiny square on your screen that gives off light. That is all.</p><p>If you look at a phone through a microscope, you see that each pixel is made of three small lights: red, green and blue. Your eye cannot see them one by one, so it blends them into one clear picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GmqsLLchayib3TMB" /></figure><h3>2. How small is it?</h3><p>On a modern phone, one pixel is about 0.05 to 0.08 mm wide.</p><ul><li>iPhone 17 Pro: 460 pixels per inch, so one pixel is about 0.055 mm (25.4 mm / 460).</li><li>iPhone SE (2022): 326 pixels per inch, so about 0.078 mm.</li><li>Pixel 7 Pro: 512 pixels per inch, so about 0.050 mm.</li></ul><p>For comparison, a human hair is roughly 0.05 to 0.1 mm thick.</p><p>Now look at a ruler. The smallest line is 1 mm. One pixel is about 12 to 20 times smaller than that gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*EA4jWTKJXm458JDr" /></figure><h3>3. Bigger screens have more pixels. Better screens have more pixels per inch.</h3><p>Two things change from phone to phone:</p><ul><li>Screen size. A tablet has more pixels than a small phone.</li><li>Pixel density. Two phones can have the same width and height in centimeters, but one packs more pixels into the same space.</li></ul><p>Example from the spec tables:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*6t5KPMMWJgiHgGFn" /></figure><p>More pixels in the same space means a sharper picture.</p><h3>PPI, DPI, DPR: what is the difference?</h3><ul><li>PPI (pixels per inch): how many physical pixels fit in one inch of the screen. Higher PPI means a sharper picture. Example: an iPhone 16 has 1179 x 2556 pixels on a 6.1 inch screen. The diagonal is about 2815 pixels, and 2815 / 6.1 is about 460 PPI.</li><li>DPI (dots per inch): the same idea, but the name comes from printing (dots of ink per inch). People often say DPI when they mean PPI on a screen. Android also uses DPI names like mdpi and xhdpi for its density groups.</li><li>DPR (device pixel ratio): physical pixels per logical pixel. It is a ratio, not a count per inch. Section 6 explains it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Vunl7GE8kuFDt2RP" /></figure><h3>4. The problem for developers</h3><p>If we draw a box that is “100 pixels” wide, what does that mean?</p><ul><li>On an old phone, 100 physical pixels is a big box.</li><li>On a modern phone, 100 physical pixels is a tiny box.</li></ul><p>The same app would look huge on one phone and tiny on another. We need a unit that keeps the same real size on every screen.</p><h3>5. The logical pixel</h3><p>A logical pixel is a unit of size that the system uses so that things look about the same size on every screen, no matter how dense the screen is.</p><p>Think of it like this: the system lays an invisible grid over your screen. Every square in the grid is one logical pixel. On a low-density screen, each square holds 1 physical pixel. On a high-density screen, each square holds 4 or 9 physical pixels. The squares stay about the same real size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*ZsXOsJJyQWmRClrs" /></figure><h3>How big is one logical pixel, in real life?</h3><p>This part is easy to get wrong, so here are the facts:</p><ul><li>Android dp is defined as 1/160 inch, about 0.16 mm.</li><li>Flutter’s own docs say there are roughly 38 logical pixels per centimeter, about 96 per inch. That is about 0.26 mm. The docs also warn that the density value from the device can be wrong, sometimes by a lot.</li><li>Real phones land close to Android’s number. an iPhone 16 has about 153 logical pixels per inch and a Pixel 7 Pro about 146. That is about 0.16 to 0.17 mm per logical pixel.</li></ul><p>So: one logical pixel is not 1 mm. It is roughly 0.16 to 0.26 mm, depending on who defines it. On real phones it is about 0.16 to 0.18 mm. Do not rely on it for exact real-world measurements.</p><h3>6. Device Pixel Ratio (DPR)</h3><p>DPR tells you how many physical pixels fit in one logical pixel, on each side.</p><p>physical = logical x DPR</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*VXYrJrccpvpBAnnJ" /></figure><p>DPR does not have to be a whole number. Flutter’s docs say it can be something like 3.5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*HK9hk3M0Jc8tFYKo" /></figure><p>Example: iPhone 17 Pro. Logical width 402, DPR 3, so physical width = 402 x 3 = 1206. This matches the spec table.</p><h3>7. The code</h3><p>The same idea has a different name on each platform:</p><ul><li>Flutter: logical pixel</li><li>iOS: point (pt)</li><li>Android: dp</li></ul><p>Flutter</p><pre>final logical = MediaQuery.sizeOf(context);<br>final dpr = MediaQuery.devicePixelRatioOf(context);<br>final physical = logical * dpr;<br>const zoom = 100.0; // draw everything 100x bigger so we can see it</pre><pre>// A box of 1 logical pixel (shown 100x bigger)<br>Container(width: 1 * zoom, height: 1 * zoom, color: Colors.red);</pre><pre>// A box of 1 physical pixel (also 100x bigger)<br>Container(width: zoom / dpr, height: zoom / dpr, color: Colors.blue);</pre><p>iOS (SwiftUI)</p><pre>Rectangle()<br>    .fill(Color.red)<br>    .frame(width: 100, height: 100)   // 1 point, shown 100x bigger</pre><p>Android (Jetpack Compose)</p><pre>Box(<br>    modifier = Modifier<br>        .size(100.dp)             // 1 dp, shown 100x bigger<br>        .background(Color.Red)<br>)</pre><p>A real 1 x 1 box is too small to see, so the code above draws everything 100x bigger. The red box is 1 logical pixel. The blue box is 1 physical pixel, so it is smaller than the red one by the DPR. You can also wrap a real 1 x 1 box in Transform.scale(scale: 50, alignment: Alignment.topLeft, child: …).</p><h3>8. Conclusion</h3><p>A physical pixel is the real light on the screen. A logical pixel is the unit we design with, so a button looks about the same size on a cheap phone and on a sharp one. DPR is the number that connects them: physical = logical × DPR.</p><p>So when you write width: 100 in Flutter, you are not asking for 100 pixels. You are asking for 100 logical pixels. The system works out how many physical pixels that needs. That is why one app can run on hundreds of different phones without you doing the math yourself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a374fe2e8e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Rules and Skills to the Gemini Agent in Android Studio]]></title>
            <link>https://medium.com/@mohamedebrahim7/how-to-add-rules-and-skills-to-the-gemini-agent-in-android-studio-7409d79883e8?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7409d79883e8</guid>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 12:42:37 GMT</pubDate>
            <atom:updated>2026-10-25T12:42:37.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qm6fmD9ZlcqVfJCGxoL0sg.png" /></figure><p>Short answer, if you’re in a hurry:</p><ul><li>Create a .agents folder in your project, with two folders inside: rules and skills.</li><li>A rule is a .md file the agent follows every time.</li><li>A skill is a folder with a SKILL.md file. The agent uses it only when it needs it.</li><li>Test it by asking the agent which rules and skills it can see.</li></ul><p>Want the details? Keep reading. It’s simple.</p><p>I love Android Studio. For me it’s still one of the best editors for Flutter. But when I looked for how to use agent rules and skills, almost every guide was for VS Code or the terminal. Android Studio was hardly mentioned.</p><p>So here is how I do everything inside Android Studio with the Gemini agent. No extra tools.</p><h3>Rule or skill?</h3><p>This is the only difference you need to know:</p><ul><li>A rule is something the agent must follow every time.</li><li>A skill is something the agent uses only when the task needs it.</li></ul><h3>Step 1: Create the folder</h3><p>In your project, create a folder called .agents. Inside it, create rules and skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/0*80NNMCx8s1ddzmHM" /></figure><h3>Step 2: Make a rule</h3><p>This was super easy. Create a file like plan-first.md inside rules, and write what you want the agent to follow.</p><p>This is a rule I find very useful:</p><pre>Before you edit any of my files, tell me your plan<br>and what you will change.</pre><p>Now the agent always explains first, before touching my code.</p><p>💡 <em>Tip: </em>Android Studio also has built-in Rules (Settings → Tools → AI → Prompt Library) and supports an AGENTS.md file. Use whichever fits your workflow.</p><h3>Step 3: Make a skill</h3><p>A skill is a folder with a SKILL.md file inside.</p><p>There are two easy ways to make one:</p><ol><li>Follow the structure from the <a href="https://agentskills.io/skill-creation/quickstart">Agent Skills quickstart</a>.</li><li>Ask the agent to help you write it. You can even give it an example, and it will build its own.</li></ol><p>The most important part is the description. It tells the agent when to use the skill.</p><p>This is a skill I use for logging in Flutter:</p><pre>---<br>name: flutter-custom-logger-convention<br>description: Use when writing print statements, debugging logs, or adding logs to Flutter/Dart code. Enforces using log() with color-coded circles instead of print() or debugPrint().<br>---</pre><pre>- NEVER use print() or debugPrint().<br>- ALWAYS use log() from dart:developer.<br>- Start every log with a circle:<br>  🟢 success  🟡 warning  🔴 error  🔵 navigation / state</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/0*qrcy0Nl1-PGHoQ0S" /></figure><p>A skill can also have an examples folder with code files inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*bVo0V00UdS6bs0vT" /></figure><h3>Step 4: Test it</h3><p>Don’t just trust that it works. Ask the agent:</p><ul><li>“What rules do you follow?”</li><li>“What skills do you have?”</li></ul><p>Then give it a real task, like “add a log to this function,” and see if it uses the 🟢 format. You can also type @ in the chat box to call a specific skill.</p><h3>Bonus: Flutter has its own skills too</h3><p>Flutter and Dart can install skills for the packages you use. The command is:</p><pre>dart run skills@ get</pre><p>The skills go into the same .agents/skills folder. The .config folder that comes with it is how Flutter keeps track of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*xMhYVbmCx2rvNK3r" /></figure><p>Two things to know:</p><ul><li>dart run skills@ list will not show your own local skills. Don’t be surprised, it’s normal.</li><li>I don’t add my own skills to skills_config.json. I leave it for Flutter’s skills.</li></ul><p>💡 <em>Tip: </em>Flutter also has ready-made rules, not only skills. You can <a href="https://github.com/flutter/agent-plugins/tree/main/rules">find them here</a> and copy one into your rules folder.</p><p>I wrote about this in a previous article: <a href="https://www.linkedin.com/pulse/package-skills-dart-flutter-mohamed-ebrahim-blnje/">Package skills in Dart &amp; Flutter</a>. All the commands are also in the <a href="https://dart.dev/ai/package-skills">Dart docs</a>.</p><h3>Your turn</h3><p>What is the first rule you would give your AI agent?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7409d79883e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Turning Pages, Shaping Code: Books That Influenced My Coding Journey]]></title>
            <link>https://medium.com/@mohamedebrahim7/turning-pages-shaping-code-books-that-influenced-my-coding-journey-0bd59cda7ed0?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bd59cda7ed0</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 10:45:46 GMT</pubDate>
            <atom:updated>2026-10-22T10:45:46.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Wj1bqyBVnQzKydoMXczTA.jpeg" /></figure><p>In this article, I’m excited to share with you some of my favorite books that have not only resonated with me but have also significantly shaped my perspective as a developer. From my viewpoint, these books have been instrumental in refining my skills and understanding, contributing to my growth as a more adept and proficient developer. Drawing from my academic background in the Faculty of Science at Cairo University , I’ve been fortunate to have professors who emphasized the importance of credible sources in shaping our knowledge. They instilled in us the value of knowing where our information originates, a principle I carry with me in my continuous learning journey as a developer.</p><p>These books are invaluable resources, beneficial not only to Specific field but also to anyone seeking professional growth. While not every book may resonate with every reader, I firmly believe that each book contains nuggets of wisdom that can profoundly impact one’s development journey in a professional and nuanced manner.</p><p><a href="https://www.amazon.ca/Introduction-Java-Programming-Comprehensive-Version-ebook/dp/B00HNZ4K1U"><em>📖 Introduction to Java by Daniel Liang</em></a></p><ul><li>Description: An exceptional resource for Java developers at all levels, covering topics such as object-oriented programming, data structures, Java basics, algorithms, and more.</li><li>Features:Comprehensive coverage of essential Java conceptsNumerous examples, checkpoints, and exercises for hands-on learning</li><li>Personal Experience: One of the first books encountered during college, marking a pivotal moment in the journey as a developer and providing foundational knowledg</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q80YhB1nwr3jQ0uw" /></figure><p><a href="https://www.amazon.com/Dart-Apprentice-First-Beginning-Programming/dp/1950325326"><em>📖 Dart Apprentice</em></a></p><ul><li>Description: A great book for learning Dart, particularly suitable for beginners. It features small challenges at the end of each chapter, making it ideal for newcomers to Dart. The book covers essential programming topics such as variables, control flow, classes, and functions.</li><li>Features: Small challenges at the end of chapters, comprehensive coverage of basic programming topics.</li><li>Target Audience: Beginners and newcomers to Dart programming</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*cME3T9XzwOVVpYSK" /></figure><p><a href="https://www.amazon.com/Dart-Apprentice-Fundamentals-Cross-Platform-Programming/dp/1950325776/ref=sr_1_1?s=books&amp;sr=1-1"><em>📖Dart Apprentice: Fundamentals</em></a></p><ul><li>Description: This newly published book (2022) delves into fundamental topics in Dart, covering advanced concepts such as if conditions inside lists, callbacks, nullability, and string manipulation. It’s designed to provide in-depth understanding and mastery of these crucial Dart concepts.</li><li>Features: Up-to-date coverage of Dart fundamentals, advanced topics including if conditions inside lists, callbacks, nullability, and string manipulation.</li><li>Target Audience: Dart developers seeking to deepen their understanding of fundamental concepts and explore advanced topics in Dart programming.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*mNNKq_7k3T9DbRuT" /></figure><p><a href="https://www.amazon.com/Dart-Apprentice-Object-Oriented-Programming-Concurrency/dp/1950325784/ref=pd_bxgy_thbs_d_sccl_1/144-7972917-0277308?pd_rd_i=1950325784&amp;psc=1"><em>📖 Dart Apprentice: Beyond the Basics</em></a></p><ul><li>Description: Essential reading for any senior Flutter developer or anyone using the Dart language generally. This book covers advanced topics such as Isolates for running code in parallel, Enhanced Enums that allow enums to act more like classes, and Generics for making classes and functions handle multiple types.</li><li>Features:Isolates: Running code in parallel. Enhanced Enums: Letting enums act more like classes. Generics: Making classes and functions handle multiple types.</li><li>Target Audience: Senior Flutter developers and advanced Dart programmers seeking to deepen their knowledge of advanced Dart topics.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*MsMG-oSeZTScrcan" /></figure><p><a href="https://www.amazon.com/Real-World-Flutter-Tutorials-First-Professional/dp/1950325768/ref=sr_1_1?s=books&amp;sr=1-1"><em>📖 Real-World Flutter by Tutorials</em></a></p><ul><li>Description: This book addresses practical challenges faced by Flutter developers, such as navigation, state management, theming, and localization. It also covers advanced topics like caching, pagination, and field validation. Additionally, it provides insights on creating and using local packages in Flutter, offering a professional touch to daily Flutter tasks.</li><li>Features:Practical Flutter development challenges: navigation, state management, theming, localization.Advanced topics: caching, pagination, field validation.Professional insights on using and creating local packages in Flutter.</li><li>Target Audience: Flutter developers looking to solve real-world problems and enhance their professional skills.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*f0VUt-LYeSQ8joEt" /></figure><p><a href="https://www.amazon.com/Flutter-Apprentice-Third-Learn-Cross-Platform/dp/1950325741"><em>📖 Flutter Apprentice (Third Edition)</em></a></p><ul><li>Description: A highly renowned and useful book that has led to Kodeco (formerly RayWenderlich ) releasing four editions. The book excels at teaching various Flutter development topics in a clean and maintainable way. It covers crucial topics such as Dart streams, app deployment, navigation, and networking with persistence.</li><li>Features: Streams: Learn about Dart streams and how to use them in Flutter apps. Deployment: Learn to prepare and deploy your app to mobile app stores. Navigation: Navigate between multiple screens within a Flutter app, including using deep links. Networking and Persistence: Fetch data from the network, parse the JSON response, and cache data locally in a SQLite database.</li><li>Personal Experience: The third edition was extremely valuable, and I am looking forward to reading the fourth edition.</li><li>Target Audience: Flutter developers looking to master essential and advanced Flutter development techniques.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*LcIaL4kr-ZuaJlTy" /></figure><p><a href="https://www.amazon.eg/-/en/Flutter-Complete-Reference-Create-beautiful/dp/B08KH3R9SY"><em>📖 Flutter Complete Reference</em></a></p><ul><li>Description: A comprehensive 766-page book covering a wide range of Flutter topics, making it an excellent reference for developers at any time. The book includes numerous suggestions and best practices from Dart’s and Flutter’s official documentation. It combines theory with simple examples to help readers understand various concepts.</li><li>Features: Extensive coverage of Flutter topics, from Dart basics to advanced features like gestures in Flutter. Includes best practices and suggestions from official documentation. Theory and practical examples for clear understanding.</li><li>Personal Experience: Read the first edition and found it immensely valuable, looking forward to reading the second edition.</li><li>Target Audience: Flutter developers seeking an extensive reference guide to deepen their understanding and improve their practices.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*C8mpBidzBqXkDog0" /></figure><p><a href="https://www.amazon.com/Cross-Platform-UIs-Flutter-ability-multiplatform/dp/1801810494"><em>📖Cross-Platform UIs with Flutter</em></a></p><ul><li>Description: This book, authored by Alberto Miola (also the author of “Flutter Complete Reference”), focuses on creating responsive and beautiful UIs using the Material and Cupertino libraries. It delves into animations, forms, gestures, and backend integration with Supabase</li><li>Features: Creating responsive UIs with Material and Cupertino libraries. Exploring animations, forms, gestures. Backend integration with Supabase</li><li>Target Audience: Flutter developers looking to enhance their UI design skills and integrate backend services.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*PWJVWa2H5TMJbLXn" /></figure><p><a href="https://blog.codemagic.io/flutter-packages-ebook-update/"><em>📖 Flutter Libraries We Love</em></a></p><ul><li>Description: A concise book aimed at introducing readers to the most popular and useful packages in the Dart and Flutter community. The book includes updated code snippets for all highlighted libraries, showcasing their latest versions.</li><li>Features: Overview of the most used and useful packages in the Dart and Flutter community. Updated code snippets for 11 key libraries.</li><li>Target Audience: Flutter developers looking to discover and implement popular libraries to enhance their development workflow.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*3JNkrdJwIk30rYL_" /></figure><p><a href="https://www.amazon.com/Programming-Flutter-Native-Cross-Platform-Apps/dp/1680506951"><em>📖Programming Flutter</em></a></p><ul><li>Description: A light, easy-to-read book that provides concise recipes and powerful knowledge for accomplishing various tasks in Flutter. It functions more like a recipe book, offering straightforward solutions and practical guidance.</li><li>Features: Short recipes for solving specific problems in Flutter. Easy to read and follow.</li><li>Target Audience: Flutter developers looking for quick, practical solutions and easy-to-follow recipes for common development tasks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/0*zziy8HI_i9Lzhulk" /></figure><p><a href="https://www.amazon.com/Google-Flutter-Cookbook-techniques-development/dp/1838823387"><em>📖Flutter Cookbook</em></a></p><ul><li>Description: A well-loved book with two editions, offering valuable recipes on how to accomplish specific tasks in Flutter. The book is known for its practical information and easy-to-read sections, making it a handy reference for developers.</li><li>Features: Practical recipes for solving specific problems in Flutter. Easy-to-read sections with valuable information.</li><li>Editions: Two editions, indicating its popularity and usefulness.</li><li>Target Audience: Flutter developers looking for practical, step-by-step solutions to common development challenges.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*u0mKJlfzkkwMqlNo" /></figure><p><a href="https://www.amazon.com/Flutter-Dart-Cookbook-Developing-Applications/dp/1098119517"><em>📖Flutter and Dart Cookbook</em></a></p><ul><li>Title: Flutter and Dart Cookbook</li><li>Description: Similar to “Flutter Cookbook” and “Programming Flutter,” this book, offered by O’Reilly, provides practical solutions in a question-and-answer format. It is the newest cookbook available for Flutter, offering concise and effective recipes.</li><li>Features: Practical recipes structured as questions and answers. Short, easy-to-follow solutions.</li><li>Target Audience: Flutter developers looking for a structured, question-and-answer format to solve development challenges efficiently.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S-hlmD2b3sPq3CCn" /></figure><p><a href="https://www.amazon.com/Building-Cross-Platform-Apps-Flutter-Dart/dp/9389423570">📖 Building Cross-Platform Apps with Flutter and Dart</a></p><ul><li>Description: This book, written in 2023, introduces the process of building cross-platform applications using Flutter and Dart. It explains key differences between Flutter and React Native, the Flutter project structure and package ecosystem, and provides an overview of the Flutter widget tree, element tree, render tree, and render objects.</li><li>Features: Explains differences between Flutter and React Native, covers Flutter’s widget tree, element tree, render tree, and render objects, and provides an introduction to the Flutter project structure and package ecosystem.</li><li>Target Audience: Developers new to Flutter looking to understand the fundamental concepts of Flutter and Dart, as well as the differences between Flutter and React Native.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*shI0JADXsN3JA_6e" /></figure><p><a href="https://www.amazon.com/Building-Mobile-Magic-Integrating-Firebase/dp/B0D137WB4X">📖 Building Mobile Magic: Integrating Flutter with Firebase</a></p><p>Description: A practical guide to integrating Flutter with Firebase, covering essential services like Realtime Database, Cloud Firestore, Authentication, Cloud Functions, Cloud Storage, and Cloud Messaging. Each topic includes simple code examples for quick implementation, ideal for beginners or as a reference. Published in April 2024 with updated Firebase features. Skip unnecessary chapters and focus on what you need, with links to Firebase docs for further learning.</p><p>Features:</p><ul><li>Realtime Database &amp; Firestore: Sync data across users.</li><li>Authentication: Manage user sign-ins.</li><li>Cloud Functions: Run backend logic.</li><li>Cloud Storage: Store large files.</li><li>Cloud Messaging: Send push notifications.</li></ul><p>Target Audience: Flutter developers looking for a quick intro to Firebase integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*grHGu8t2GO8FxDku" /></figure><p><a href="https://www.amazon.com/Google-Flutter-Mobile-Development-Quick/dp/1789344964"><em>📖Google Flutter Mobile Development Quick Start Guide</em></a></p><ul><li>Description: How many times have you heard that AI is the future? This book is not for beginners or mid-level developers but for those seeking new challenges in Flutter. It teaches you how to integrate AI features into Flutter apps. It is a powerful resource and the only book that covers this topic extensively.</li><li>Features: Integration of AI features into Flutter apps. Advanced content suitable for experienced developers.</li><li>Target Audience: Experienced Flutter developers looking to integrate AI functionalities into their applications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*xKbFbc85BIBJs7zG" /></figure><p><a href="https://www.amazon.com/Getting-Know-IntelliJ-IDEA-knowledge/dp/B0BQ9CP785"><em>📖Getting to Know IntelliJ IDEA</em></a></p><ul><li>Description: As a fan of IntelliJ since my college days, I found this book to be extremely useful and powerful. Understanding your IDE, which is your closest companion throughout your development career, is crucial. This book was immensely helpful for me and is especially beneficial for anyone using Java, Spring, and Spring Boot, as well as for fans of IntelliJ-based IDEs like PyCharm, Android Studio, and others under the IntelliJ umbrella.</li><li>Features: In-depth knowledge of IntelliJ IDEA. Useful for Java, Spring, and Spring Boot developers. Relevant for users of all IntelliJ-based IDEs.</li><li>Target Audience: Developers using IntelliJ IDEA or any IntelliJ-based IDEs looking to deepen their understanding and maximize their productivity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*T_0jER_-SrWRb54z" /></figure><p><a href="https://www.amazon.com/Git-Apprentice-Second-Commands-Concepts/dp/1950325512"><em>📖Git Apprentice (Second Edition)</em></a></p><ul><li>Description: As a fan of Kodeco books, I must say this one is particularly enjoyable. It’s a fantastic guide to mastering Git and GitHub, essential tools for any modern development project or company. If you ask me for a recommendation on learning version control, this book would definitely be at the top of my list.</li><li>Features: Comprehensive guide to Git and GitHub. Essential for mastering version control in modern development.</li><li>Personal Recommendation: Highly enjoyable and a top recommendation for learning Git and GitHub.</li><li>Target Audience: Developers looking to master Git and GitHub for effective version control in their projects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*k57_QMOvAteBjgJQ" /></figure><p><a href="https://www.amazon.com/Beginning-Software-Engineering-Rod-Stephens-dp-1119901707/dp/1119901707/ref=dp_ob_image_bk"><em>📖Beginning Software Engineering (2nd Edition)</em></a></p><ul><li>Description: This book is an essential read before writing any code, providing a no-nonsense guide to requirements gathering, system modeling, design, implementation, testing, and debugging. For me, this book is truly a masterpiece in teaching the fundamentals of software engineering.</li><li>Features: Comprehensive coverage of software engineering principles. Focuses on requirements gathering, system modeling, design, implementation, testing, and debugging.</li><li>Personal Recommendation: A true masterpiece and an essential guide for understanding software engineering.</li><li>Target Audience: Aspiring software engineers and developers looking to solidify their understanding of software engineering fundamentals.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8t9V7mZHS-J0tjGe" /></figure><p><a href="https://www.oreilly.com/library/view/software-architecture-patterns/9781098134280/"><em>📖Software Architecture Patterns, 2nd Edition</em></a></p><ul><li>Description: A concise 50-page book that is simple and easy to understand yet rich in knowledge. This updated report presents several common architecture styles to guide designers and developers in designing components and determining how those components should interact.</li><li>Features: Overview of common architecture styles. Guidance on designing components and their interactions.</li><li>Target Audience: Designers and developers seeking to understand and apply various software architecture patterns in their projects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*1i-bfyOUGZoq50hq" /></figure><p><a href="https://www.amazon.com/Code-Simplicity-Fundamentals-Max-Kanat-Alexander-ebook/dp/B007NZU848"><em>📖Code Simplicity: The Fundamentals of Software</em></a></p><ul><li>Description: As the name suggests, this book focuses on code and simplicity. It offers principles that can be applied to any programming language or project, providing timeless advice. Readers will learn how to create a sound plan for their software projects and make better decisions about the patterns and structure of their systems.</li><li>Features: Timeless principles applicable to any programming language or project. Guidance on creating a sound project plan. Tips for making better decisions about patterns and system structure.</li><li>Target Audience: Software developers and engineers looking to enhance their planning and decision-making skills for creating simple, maintainable code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2vBpft2LqTvsNEp1" /></figure><p><a href="https://www.amazon.com/Pragmatic-Programmer-journey-mastery-Anniversary-dp-0135957052/dp/0135957052/ref=dp_ob_title_bk"><em>📖The Pragmatic Programmer: From Journeyman to Master</em></a></p><ul><li>Description: Often listed as a “must-read” for developers, this book is incredibly useful and covers many sections that can elevate you to a professional level. Topics such as the “broken window” principle and “tracer bullets” are indispensable. This is a book you definitely should read.</li><li>Features: Comprehensive guide to professional software development. Key topics include the broken window principle and tracer bullets. Offers practical advice and tips to enhance your programming skills.</li><li>Personal Recommendation: Essential reading for any developer aiming to reach a professional level.</li><li>Target Audience: Developers of all levels looking to gain practical, professional insights and improve their coding practices.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*VX98XkFYHq-3yLeo" /></figure><p>📖Everything You Need to Ace Computer Science</p><ul><li>Description: This book is a sketchbook that you can read anywhere, whether you’re at work or elsewhere. While it may be more suited for kids, I found it enjoyable and wouldn’t be ashamed to include it in my list .</li><li>Features: Accessible format suitable for reading on-the-go. Provides a comprehensive overview of computer science concepts. Well-suited for beginners or those looking for a refresher.</li><li>Target Audience: Beginners or individuals looking for an easy-to-understand introduction to computer science concepts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3MfKn8NzOZDglosn" /></figure><p><a href="https://www.amazon.com/Soft-Skills-Software-Developers-Manual/dp/0999081446"><em>📖Soft Skills: The Software Developer’s Life Manual</em></a></p><ul><li>Description: This book addresses the common stereotype of developers lacking social skills by providing valuable life skills for both personal and professional development. John uses a simple style to teach topics that you never knew you needed, covering areas such as landing and keeping a job, standing out from the competition, learning efficiently, managing finances, prioritizing health, and building your personal brand.</li><li>Features: Addresses the need for life skills in the software development profession. Covers various topics including career advancement, learning strategies, financial management, and health. Offers practical advice in a straightforward manner.</li><li>Target Audience: Software developers looking to enhance their personal and professional skills beyond technical expertise.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*69p9VEOzvoKh2rQ6" /></figure><p><a href="https://www.amazon.com/Complete-Software-Developers-Career-Guide/dp/0999081411/ref=pd_bxgy_d_sccl_2/133-5941032-1436016?pd_rd_i=0999081411&amp;psc=1"><em>📖The Complete Software Developer’s Career Guide</em></a></p><ul><li>Description: Similar to “Soft Skills: The Software Developer’s Life Manual” this book delves into the career aspect of software development but with less depth in programming. If you enjoyed “Soft Skills,” you’ll likely find value in this guide as well. However, if you missed “Soft Skills,” it’s still a worthwhile read.</li><li>Features: Focuses on the career development aspect of software development. Offers insights and advice for advancing in the field. Provides guidance on various career-related topics.</li><li>Target Audience: Software developers interested in advancing their careers and gaining insights into the profession beyond programming skills.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*UWmXzsDTQH3rU1A8" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bd59cda7ed0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Hidden Gems: Lesser-Known Flutter Widgets and Techniques]]></title>
            <link>https://medium.com/@mohamedebrahim7/unlocking-hidden-gems-lesser-known-flutter-widgets-and-techniques-5ec36076265f?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ec36076265f</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[pubdev]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 04:51:56 GMT</pubDate>
            <atom:updated>2026-10-21T04:51:56.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*nd2gmg5PA3u6qzUgZYiibg.jpeg" /></figure><p>As a Flutter developer, I’m always on the lookout for tools and techniques that can simplify and enhance my development process. A recent deep dive into a YouTube <a href="https://www.youtube.com/watch?v=ebYDOadpPcI&amp;list=PLjxrf2q8roU23XGwz3Km7sQZFTdB996iG">playlist</a> featuring 161 videos of “Widget of the Week” and “Technique of the Week” (as of August 1, 2024) revealed some hidden gems that are incredibly useful but not widely known. Given the playlist’s ever-growing nature, with more videos expected in the future, this article highlights some of these lesser-known Flutter widgets and techniques, aiming to help developers discover powerful tools that might not be on their radar.</p><h3>Main Body</h3><p>In this article, I’ll share insights from the playlist and spotlight some of the most useful, yet lesser-known, Flutter widgets and techniques. My aim is to help you uncover these hidden gems and incorporate them into your projects to streamline your development process.</p><p>Here’s a curated list of Flutter widgets and techniques that you may find both intriguing and highly beneficial for your projects:</p><h3>1. ListWheelScrollView</h3><p>The <a href="https://api.flutter.dev/flutter/widgets/ListWheelScrollView-class.html">ListWheelScrollView</a> is a powerful widget that provides a wheel-like scrolling effect. It’s useful for creating carousel-like interfaces or selectors. It offers a unique way to present a list of items with a smooth, spinning effect that can be particularly engaging.</p><h3>2. CupertinoActionSheet</h3><p>The <a href="https://api.flutter.dev/flutter/cupertino/CupertinoActionSheet-class.html">CupertinoActionSheet</a> provides a stylish way to present a set of options in iOS-style action sheets. It’s less common compared to the Material Design alternatives but can add a cool and catchy look to your app.</p><h3>3. ToggleButton</h3><p><a href="https://api.flutter.dev/flutter/material/ToggleButtons-class.html">ToggleButton</a> is a widget for managing single or multiple selections in a visually appealing way. It’s not as widely known but is incredibly useful for creating toggles or switch-like controls.</p><h3>4. ColorFiltered</h3><p>The <a href="https://api.flutter.dev/flutter/widgets/ColorFiltered-class.html">ColorFiltered</a> widget applies a color filter to its child widget, which can be useful for adding color effects to images or other widgets. Unlike ShadeMask, it covers the entire widget, making it versatile for various use cases.</p><h3>5. DataTable</h3><p><a href="https://api.flutter.dev/flutter/material/DataTable-class.html">DataTable</a> is ideal for displaying tabular data and can be particularly useful if your app involves database interactions or needs to present structured information in a grid-like format.</p><h3>6. SelectableText</h3><p><a href="https://api.flutter.dev/flutter/widgets/SelectableText-class.html">SelectableText</a> allows users to select and copy text. This widget is essential for any app where text selection is necessary but is not enabled by default in Flutter’s basic Text widget.</p><h3>7. FractionallySizedBox</h3><p>The <a href="https://api.flutter.dev/flutter/widgets/FractionallySizedBox-class.html">FractionallySizedBox</a> is a magical widget that sizes its child relative to its own size or the size of its parent, making it a versatile alternative to SizedBox and media queries.</p><h3>8. ConstrainedBox</h3><p><a href="https://api.flutter.dev/flutter/widgets/ConstrainedBox-class.html">ConstrainedBox</a> allows you to impose constraints on its child widget, such as maximum width or height. It’s useful for controlling the size of widgets when their dimensions are not explicitly defined.</p><h3>9. ReorderableListView</h3><p><a href="https://api.flutter.dev/flutter/material/ReorderableListView-class.html">ReorderableListView</a> enables users to reorder items in a list by dragging them. It’s particularly useful for creating sortable lists in your app.</p><h3>10. LimitedBox</h3><p><a href="https://api.flutter.dev/flutter/widgets/LimitedBox-class.html">LimitedBox</a> helps in situations where a parent widget provides no constraints for its child. It is particularly useful in scrollable contexts to limit the size of the child widget.</p><h3>11. ValueNotifier</h3><p><a href="https://api.flutter.dev/flutter/foundation/ValueNotifier-class.html">ValueNotifier</a> is a simple but effective way to manage state changes. It is a more lightweight version of Provider and can be handy when you need basic state management without external dependencies.</p><h3>12. Transform</h3><p>The <a href="https://api.flutter.dev/flutter/widgets/Transform-class.html">Transform</a> widget allows you to apply transformations such as rotation, scaling, or translation to its child. It’s useful for animations and effects that require changes to the widget’s visual representation.</p><h3>13. AbsorbPointer</h3><p><a href="https://api.flutter.dev/flutter/widgets/AbsorbPointer-class.html">AbsorbPointer</a> prevents its child from receiving pointer events. It’s more powerful than IgnorePointer and can be particularly useful in cases where you need to disable interaction in specific areas of your app.</p><h3>14. FittedBox</h3><p><a href="https://api.flutter.dev/flutter/widgets/FittedBox-class.html">FittedBox</a> scales and positions its child widget to fit within the parent’s bounds. It’s useful for ensuring that a widget fits well within a given space.</p><h3>15. FadeInImage</h3><p><a href="https://api.flutter.dev/flutter/widgets/FadeInImage-class.html">FadeInImage</a> displays a placeholder while the image is loading and then fades in the actual image. It’s a smooth way to handle image loading states in your app.</p><h3>16. TransparentImage</h3><p><a href="https://api.flutter.dev/flutter/widgets/Image-class.html">TransparentImage</a> allows you to display images with transparency. This can be useful for overlay effects or when you want to blend images with background colors or other elements.</p><h3>17. Wrap</h3><p>The <a href="https://api.flutter.dev/flutter/widgets/Wrap-class.html">Wrap</a> widget arranges its children in a horizontal or vertical sequence and wraps them to the next line if needed. It’s useful for creating flexible layouts where items need to wrap when space is constrained.</p><h3>18. SafeArea</h3><p><a href="https://api.flutter.dev/flutter/widgets/SafeArea-class.html">SafeArea</a> ensures that its child is not obscured by system UI elements such as notches or status bars. You can specify which edges to consider for safety.</p><h3>19. FirebaseCrashlytics</h3><p><a href="https://firebase.google.com/docs/crashlytics">FirebaseCrashlytics</a> helps you track and manage app crashes. It provides detailed reports and can be integrated into your Flutter app for better error tracking.</p><h3>20. RowMagnifier</h3><p><a href="https://api.flutter.dev/flutter/widgets/RowMagnifier-class.html">RowMagnifier</a> can be used to magnify parts of your UI, providing an enhanced view of specific elements. It’s useful for accessibility or detailed views.</p><h3>21. NavigationBar</h3><p><a href="https://api.flutter.dev/flutter/material/NavigationBar-class.html">NavigationBar</a> is part of Material 3 and offers an alternative to BottomNavigationBar, providing a modern design and better customization options.</p><h3>22. StatefulBuilder</h3><p><a href="https://api.flutter.dev/flutter/widgets/StatefulBuilder-class.html">StatefulBuilder</a> allows you to rebuild part of your widget tree without rebuilding the entire screen. It’s useful for state management in specific sections of your app.</p><h3>23. ScaffoldMessenger</h3><p><a href="https://api.flutter.dev/flutter/material/ScaffoldMessenger-class.html">ScaffoldMessenger</a> is used to display SnackBars across different screens in your app. It provides a way to show messages to users in a consistent manner.</p><h3>24. DropdownMenu</h3><p><a href="https://api.flutter.dev/flutter/material/DropdownMenu-class.html">DropdownMenu</a> offers a modern alternative to DropdownButton with Material 3 design. It supports customization and positioning of menu items.</p><h3>25. SmoothPageIndicator</h3><p><a href="https://pub.dev/packages/smooth_page_indicator">SmoothPageIndicator</a> is a package from <a href="http://pub.dev/">pub.dev</a> that provides an easy way to implement page indicators with smooth transitions. It’s more user-friendly than TabPageSelector.</p><h3>26. Collection Package</h3><p>The <a href="https://pub.dev/packages/collection">Collection</a> Package provides a set of utilities for working with collections, such as lists, maps, and sets. It’s especially useful for those familiar with data structures from other programming languages.</p><h3>27. RotatedBox</h3><p><a href="https://api.flutter.dev/flutter/widgets/RotatedBox-class.html">RotatedBox</a> is used to rotate its child by a specified number of quarter turns. It’s handy for rotating widgets with minimal code.</p><h3>28. Flutter_Slidable</h3><p><a href="https://pub.dev/packages/flutter_slidable">Flutter_Slidable</a> provides a way to add swipe-to-dismiss functionality to list items with less code compared to the standard Dismissible widget.</p><h3>29. InteractiveViewer</h3><p><a href="https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html">InteractiveViewer</a> allows users to zoom and pan across widgets. It’s useful for creating interactive and zoomable interfaces.</p><h3>30. AboutDialog</h3><p><a href="https://api.flutter.dev/flutter/material/AboutDialog-class.html">AboutDialog</a> provides a standardized way to display legal or informational content about your app. It’s useful for including licenses and acknowledgments.</p><h3>31. CupertinoActivityIndicator</h3><p>The <a href="https://api.flutter.dev/flutter/cupertino/CupertinoActivityIndicator-class.html">CupertinoActivityIndicator</a> is an iOS-style loading spinner that can add a sleek look to your app. It’s equivalent to the CircularProgressIndicator in Material Design.</p><h3>32. IgnorePointer</h3><p><a href="https://api.flutter.dev/flutter/widgets/IgnorePointer-class.html">IgnorePointer</a> makes its child unresponsive to pointer events, effectively making it invisible to touch interactions. It’s useful for temporarily disabling parts of the UI.</p><h3>33. Divider</h3><p><a href="https://api.flutter.dev/flutter/material/Divider-class.html">Divider</a> creates a horizontal or vertical line to separate content. You can customize the indent and endIndent properties to adjust the spacing.</p><h3>34. Builder</h3><p><a href="https://api.flutter.dev/flutter/widgets/Builder-class.html">Builder</a> is used to create new widget subtrees, especially when you need to separate the context in which widgets are built. It’s helpful for optimizing rebuilds and isolating parts of your UI.</p><h3>35. NotificationListener</h3><p><a href="https://api.flutter.dev/flutter/widgets/NotificationListener-class.html">NotificationListener</a> listens for notifications bubbling up the widget tree, which is particularly useful for scroll events and other notifications.</p><h3>36. ShaderMask</h3><p><a href="https://api.flutter.dev/flutter/widgets/ShaderMask-class.html">ShaderMask</a> applies a shader to its child, allowing for gradient effects and other fancy visual enhancements. It’s particularly useful for creating visually appealing text effects.</p><h3>37. Firebase ML Kit</h3><p><a href="https://firebase.google.com/products/ml-kit">Firebase ML Kit</a> provides machine learning capabilities such as image labeling, text recognition, and more, making it a powerful tool for adding AI features to your app.</p><h3>38. Future.wait</h3><p><a href="https://api.flutter.dev/flutter/dart-async/Future/wait.html">Future.wait</a> allows you to wait for multiple futures to complete and returns their results. It’s useful for synchronizing multiple asynchronous operations.</p><h3>39. List.generate</h3><p><a href="https://api.flutter.dev/flutter/dart-core/List/List.generate.html">List.generate</a> creates a list with a fixed length and initializes it with values generated by a function. It’s a more efficient way to create lists with similar widgets.</p><h3>Personal Connection</h3><p>As a developer dedicated to mastering Flutter, discovering these widgets and techniques has been eye-opening. Have you ever encountered a widget or technique that completely changed your approach to development? These hidden gems can make a significant impact on your projects, often simplifying tasks that would otherwise require complex solutions.</p><h3>Conclusion</h3><p>Continuous learning and exploration are essential for mastering Flutter and staying ahead in the development game. By embracing new widgets and techniques, you can enhance your skills and make your development process more efficient and enjoyable. Keep exploring and experimenting to unlock new possibilities!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ec36076265f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Tree Shaking in Flutter: What It Is and Why It Matters]]></title>
            <link>https://medium.com/@mohamedebrahim7/tree-shaking-in-flutter-what-it-is-and-why-it-matters-de00600d7b51?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/de00600d7b51</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[tree-shaking]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 04:51:51 GMT</pubDate>
            <atom:updated>2026-10-21T04:51:51.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urd3O0QzJzRegrln3RoNrA.jpeg" /></figure><p>As a Flutter developer, you want to ensure that your apps are as efficient and optimized as possible. One way to achieve this is through tree shaking. But what exactly does that mean, and how does it relate to Flutter?</p><h3>1. What is Tree Shaking? 🤔</h3><p>Tree shaking is a process that removes unused code from your app, ensuring that only the code necessary for your app to function is included in the final build. This helps to reduce the app’s size, leading to faster downloads and better performance. Essentially, tree shaking “shakes out” the dead code, leaving behind only what’s essential.</p><h3>2. How Does It Relate to Flutter? 🌟</h3><p>In Flutter, tree shaking is an integral part of the build process, especially crucial for web builds where reducing JavaScript bundle size can significantly improve load times. Flutter’s build system leverages tree shaking to strip away unused Dart code, optimizing your app’s performance by keeping only the necessary parts of your codebase.</p><h3>3. How to Enable Tree Shaking in Flutter? 🚀</h3><p>Tree shaking is automatically applied in profile and release modes in Flutter, ensuring your app is optimized for production. However, keep in mind that tree shaking does not occur in debug mode, where all code — including unused parts — is included to allow for full visibility during development.</p><h3>4. Who Does the Tree Shaking in Flutter? 👷♂️</h3><p>The Dart AOT (Ahead-Of-Time) compiler handles tree shaking in Flutter. During the compilation process, the compiler analyzes the code’s syntax tree and prunes any unused parts, ensuring that only the essential code is converted into optimized machine code.</p><h3>5. What Can Flutter Tree Shaking Eliminate? 🗑️</h3><p>Flutter tree shaking can eliminate unused functions, variables, libraries, metadata, and type parameters. It can even remove entire classes and methods if they’re not referenced anywhere in the code, helping to keep your app’s footprint minimal.</p><h3>6. Limitations of Tree Shaking in Flutter ⚠️</h3><p>While tree shaking in Flutter is powerful, it currently doesn’t extend to non-code assets like images, fonts, or other files. Developers need to manually manage these assets to ensure they’re not unnecessarily included in the final build.</p><h3>7. How is the Process of Flutter Tree Shaking Done? 🛠️</h3><p>Tree shaking primarily occurs during the AOT compilation phase, where the Dart AOT compiler prunes unused code and generates optimized machine code. While the Dart VM plays a role, the AOT compiler does the heavy lifting, ensuring that only the necessary parts of your app’s codebase make it into the final build.</p><p>Impact of Tree Shaking: Tree shaking is crucial for reducing app size, leading to faster downloads, quicker app launches, and less storage usage on devices. It’s an essential optimization technique for delivering high-performance Flutter apps.</p><p>Further Reading: For more in-depth information, check out the <a href="https://flutter.dev/docs/development/tools/web-performance#tree-shaking">official Flutter documentation on tree shaking</a> and learn more about <a href="https://dart.dev/tools/dart-compile#jit-vs-aot">Dart AOT compilation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de00600d7b51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ A Flutter UI Template Hub for Builders and Learners]]></title>
            <link>https://medium.com/@mohamedebrahim7/a-flutter-ui-template-hub-for-builders-and-learners-2208472ef1ab?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2208472ef1ab</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 04:51:43 GMT</pubDate>
            <atom:updated>2026-10-21T04:51:43.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*loG-VudQMcYi86utBEo7WQ.png" /></figure><p><a href="https://github.com/flutter-template-kit">Flutter Template Kit</a> is an open-source GitHub organization offering a clean, growing collection of Flutter UI templates — built to help developers move faster and design smarter.</p><p>This resource is built using Flutter 3.29.0, so every project is ready to run without version issues, Gradle errors, or iOS pod problems. Just clone and start exploring.</p><h3>🔍 What’s Inside</h3><p>Each project is UI-only — no backend or real-time data — making these templates perfect for learning, prototyping, or using as a design foundation.</p><p>Here’s a look at what’s available:</p><ul><li>🎬 <a href="https://github.com/flutter-template-kit/flix_app">flix app</a> — Movie streaming UI with category browsing and detail pages</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*W4RUuDJ00UTH7tH5" /></figure><ul><li>🩺 <a href="https://github.com/flutter-template-kit/medilab_prokit">medilab prokit</a> — Medical/health app with booking, profiles, and dashboards</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*enwtpQb6Wo_2DO-U" /></figure><ul><li>👟 <a href="https://github.com/flutter-template-kit/sneaker_shopping_prokit">sneaker shopping prokit</a> — Clean e-commerce UI focused on sneakers</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*sp7NcLAKcKpXHXFr" /></figure><ul><li>🍱 <a href="https://github.com/flutter-template-kit/flutter_japanese_restaurant_app">flutter japanese restaurant app</a> — Food delivery UI with light and dark modes</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*6Ccsvv9YhnXvHbOx" /></figure><ul><li>🎧 <a href="https://github.com/flutter-template-kit/music_podcast">music podcast</a> — Podcast and music player screens</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*OrCxO1kyeQ7XGlhg" /></figure><ul><li>🧺 <a href="https://github.com/flutter-template-kit/laundry_service_app">laundry service app</a> — Service scheduling, tracking, and checkout flow</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*oBSUHHahEM4cXsjF" /></figure><ul><li>📚 <a href="https://github.com/flutter-template-kit/learner_flutter">learner flutter</a> — Course browsing and education app UI</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*wGLtxfv1SZGwVN3d" /></figure><ul><li>💳 <a href="https://github.com/flutter-template-kit/wallet_flutter">wallet flutter</a> &amp; <a href="https://github.com/flutter-template-kit/orapay_prokit">orapay prokit</a> — Fintech UI with payment screens and dashboards</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*DEuVIKRabyMi204P" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*wUY5C5iOowPR1T8N" /></figure><ul><li>🛒 <a href="https://github.com/flutter-template-kit/grocery_flutter">grocery flutter</a> — Product listings, cart flow, and checkout for grocery apps</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*Kuat78TwYU2mxDvG" /></figure><ul><li>📅 <a href="https://github.com/flutter-template-kit/event_flutter">event flutter</a> — Event discovery, booking, and speaker profile screens</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*sQ7hAMvU-0Fvq5mi" /></figure><ul><li>📱 <a href="https://github.com/flutter-template-kit/social_flutter">social flutter</a> — Social media layout with feed, profiles, and interactions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*ov_fmvu7mXQk6x2K" /></figure><ul><li>✨ <a href="https://github.com/flutter-template-kit/smart_deck">smart deck</a> — Card-based interface with interactive layouts</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*h-X7zqm7kLc18hnL" /></figure><ul><li>🧠 <a href="https://github.com/flutter-template-kit/quiz_flutter">quiz flutter</a> — Question UI, answer selection, and result display</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*50b72TGi1UguRuTy" /></figure><ul><li>🍔 <a href="https://github.com/flutter-template-kit/yum_food_flutter">yum food flutter</a> — Food delivery UI with featured dishes and cart previews</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*2fBIU8g3Jm1B04xw" /></figure><ul><li>✍️ <a href="https://github.com/flutter-template-kit/medium_flutter">medium flutter</a> — Blog reader UI inspired by Medium</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*EABTigL12M-oVyqN" /></figure><h3>🧩 Why This Collection Exists</h3><p>The goal is simple: provide a practical, up-to-date UI resource for the Flutter community. Whether you’re:</p><ul><li>Learning Flutter through real-world examples</li><li>Prototyping app ideas faster</li><li>Looking for layout inspiration</li></ul><p>FlutterTemplateKit makes it easier to build, explore, and launch.</p><h3>🔗 Explore the Templates</h3><p>Check out the full library: 👉 <a href="https://github.com/flutter-template-kit">Flutter Template Kit</a></p><p>New projects are added regularly. Feedback and contributions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2208472ef1ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Keystores, SHA-1 & Firebase in Flutter — Explained Simply]]></title>
            <link>https://medium.com/@mohamedebrahim7/keystores-sha-1-firebase-in-flutter-explained-simply-2286dbad1f6d?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2286dbad1f6d</guid>
            <category><![CDATA[keystore]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 04:51:34 GMT</pubDate>
            <atom:updated>2026-10-21T04:51:34.088Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*949e1qk-56YmXrX9UZoA3w.png" /></figure><p>If you’re building Android apps with Flutter, chances are you’ve run into .jks files, SHA-1 fingerprints, and Firebase asking for mystery values. It can be a confusing setup at first, so here’s a clear breakdown to make sense of it all 👇</p><h3>🧱 What’s a Keystore?</h3><p>A keystore is a secure file that stores cryptographic keys — like your private signing key for Android apps.</p><p>When you release your app, Android uses this keystore to digitally sign your APK or AAB. This proves that the app really came from you and hasn’t been tampered with. It’s all about security and identity.</p><h3>🗂️ Are All Keystores .jks Files?</h3><p>No — while .jks is the most common format, there are several others. They all serve the same purpose but have different structures:</p><p>Extension Format Notes</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>.jks Java KeyStore Most common for Android apps</p><p>.keystore Java KeyStore Same format as .jks, just a different name</p><p>.p12, .pfx PKCS#12 Cross-platform, also used in iOS/macOS</p><p>.bks Bouncy Castle More flexible format, less common</p><h3>👷 Debug Keystore (Auto-Generated)</h3><p>When building in debug mode, Flutter doesn’t use your release keystore. Instead, the Android SDK signs your builds using a debug keystore.</p><h3>📍 Default Location:</h3><ul><li>macOS/Linux: ~/.android/debug.keystore</li><li>Windows: C:\Users\&lt;You&gt;\.android\debug.keystore</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YH5H9aRt_wpH2bKj" /></figure><h3>🧬 What’s SHA-1?</h3><p>SHA-1 is a fingerprint of the signing key inside your keystore. Firebase uses it to make sure your app is signed by a trusted key — and not someone impersonating you.</p><p>When Firebase asks you to “add your SHA-1,” it’s looking for this fingerprint.</p><h3>🔎 How to Get Your SHA-1</h3><h3>1. From the Debug Keystore:</h3><pre>keytool -list -v \<br>-alias androiddebugkey \<br>-keystore ~/.android/debug.keystore \<br>-storepass android \<br>-keypass android</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E229qYg8eGfD5SbC" /></figure><h3>2. From Your Release Keystore:</h3><pre>keytool -list -v \<br>-alias your_alias \<br>-keystore /path/to/your_release_key.jks</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y5aGsf0RSUDo9-O1" /></figure><h3>🛠️ How to Create a Release Keystore</h3><p>To release your app to the Play Store, you’ll need a secure keystore:</p><pre>keytool -genkeypair -v \<br>-alias your_alias \<br>-keyalg RSA \<br>-keysize 2048 \<br>-validity 10000 \<br>-keystore your_release_key.jks</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pvf3N-SLe_1JXmgZ" /></figure><p>This creates a .jks file you can use to sign your release builds.</p><h3>❓ Why Does Firebase Need SHA-1?</h3><p>Firebase uses SHA-1 to trust the key your app was signed with.</p><p>It doesn’t identify <em>you personally</em> — just the private key you’re using. That’s why it’s critical to give Firebase the correct SHA-1 for each keystore you use.</p><blockquote><em>⚠️ Common Mistake: Not adding your release SHA-1 to Firebase will break auth and other services in production.</em></blockquote><h3>🔁 What Happens When You Switch to Release Mode?</h3><p>⚠️ This is where things often break.</p><ul><li>If your Firebase project only knows your debug SHA-1, it won’t trust your release build.</li><li>As a result, things like Google Sign-In, Phone Auth, or Dynamic Links might silently fail.</li></ul><h3>✅ Fix:</h3><p>Add both SHA-1 fingerprints (debug and release) to Firebase:</p><blockquote><em>Firebase Console → Project Settings → Your App → Add Fingerprint</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9mDLitKF3Ou4thMI" /></figure><h3>🧩 Final Thoughts</h3><ul><li>A keystore securely holds your app’s signing keys — not just .jks.</li><li>SHA-1 is a fingerprint of that key, used to verify identity with Firebase.</li><li>Debug and release builds use different keys, so they have different SHA-1s.</li><li>Always add both SHA-1s to Firebase to avoid runtime surprises.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2286dbad1f6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Evergreen Refactoring? (And Why Your Flutter Code Needs It)]]></title>
            <link>https://medium.com/@mohamedebrahim7/what-is-evergreen-refactoring-and-why-your-flutter-code-needs-it-78506f3d9956?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/78506f3d9956</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 04:51:26 GMT</pubDate>
            <atom:updated>2026-10-21T04:51:26.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TpHDJQLSfCLNnpN-hsajig.png" /></figure><h3>What “Evergreen Refactor” means (in Flutter context)</h3><p>An evergreen refactor is a continuous, incremental refactoring strategy where your Flutter codebase is always kept clean, up-to-date, and easy to change, instead of doing large, risky rewrites.</p><p>Think of it as:</p><blockquote>Refactoring as a habit, not a phase.</blockquote><p>Just like an <em>evergreen tree</em> never “dies” seasonally, your codebase never becomes “legacy”.</p><h3>Why Evergreen Refactoring is important in Flutter</h3><p>Flutter apps evolve fast:</p><ul><li>UI changes frequently</li><li>State management approaches evolve (setState → Provider → Riverpod / Bloc, etc.)</li><li>Flutter &amp; Dart SDKs change often</li><li>Features grow rapidly</li></ul><p>Without evergreen refactoring:</p><ul><li>Widgets become massive</li><li>State leaks into UI</li><li>Build methods become unreadable</li><li>Performance issues creep in</li><li>Refactors become scary 😬</li></ul><h3>Core principles of Evergreen Refactoring in Flutter</h3><h3>1. Refactor continuously (small steps)</h3><p>Never wait for a “refactor sprint”.</p><p>Examples:</p><ul><li>Extract a widget when it reaches ~50–80 lines</li><li>Rename unclear variables immediately</li><li>Move logic out of build() as soon as it appears</li></ul><p>✅ Small PRs</p><p>❌ Huge rewrites</p><h3>2. Keep Widgets “thin”</h3><p>UI widgets should mostly:</p><ul><li>Read state</li><li>Render UI</li><li>Handle simple interactions</li></ul><p>❌ Bad:</p><pre>build() {<br>  final result = api.calculateComplexLogic(data);<br>  ...<br>}</pre><p>✅ Better:</p><pre>build() {<br>  final result = viewModel.result;<br>  ...<br>}</pre><p>Move logic to:</p><ul><li>ViewModels</li><li>Controllers</li><li>Notifiers</li><li>Services</li></ul><h3>3. Refactor toward clear architecture</h3><p>Evergreen refactoring nudges your code toward better structure over time.</p><p>Common Flutter-friendly architectures:</p><ul><li>Feature-first folder structure</li><li>MVVM</li><li>Clean Architecture (lightweight)</li><li>Bloc / Riverpod / Provider patterns</li></ul><p>Example feature-based structure:</p><pre>lib/<br> └─ features/<br>    └─ login/<br>       ├─ login_page.dart<br>       ├─ login_view_model.dart<br>       ├─ login_state.dart<br>       └─ login_service.dart</pre><p>You don’t migrate everything at once — new code follows the pattern, old code gets refactored gradually.</p><h3>4. Refactor when touching code</h3><p>Golden rule:</p><blockquote><em>If you touch a file, leave it cleaner than you found it.</em></blockquote><p>Examples:</p><ul><li>While fixing a bug → extract widgets</li><li>While adding a feature → rename bad variables</li><li>While debugging → delete dead code</li></ul><p>This keeps technical debt from growing.</p><h3>5. Use tests as refactoring safety nets</h3><p>When you refactor, you change how the code is written, not what the app does.</p><p>Tests are there to confirm:</p><blockquote><em>“After my changes, the app still behaves the same.”</em></blockquote><p>They protect you while you clean or improve the code.</p><p>…………………………………………………………………………………………………</p><h3>Why tests matter for evergreen refactoring</h3><p>Refactoring happens all the time in an evergreen codebase.</p><p>Without tests:</p><ul><li>You refactor</li><li>App still runs</li><li>Bugs appear later (sometimes in production)</li></ul><p>With tests:</p><ul><li>You refactor</li><li>Run tests</li><li>Tests immediately tell you if something broke</li></ul><p>So tests = early warning system.</p><p>…………………………………………………………………………………………………</p><h3>The 3 test types:</h3><h3>1️⃣ Unit tests — protect your logic</h3><p>They check that:</p><ul><li>Calculations are correct</li><li>Business rules still work</li><li>State changes behave the same</li></ul><p>Why this helps refactoring:</p><ul><li>You can move logic between files</li><li>Rename methods</li><li>Change internal structure …and still be confident the logic works as before.</li></ul><p>…………………………………………………………………………………………………</p><h3>2️⃣ Widget tests — protect UI behavior</h3><p>They check that:</p><ul><li>Buttons still work</li><li>Correct text shows for each state</li><li>Screens react properly to user actions</li></ul><p>Why this helps refactoring:</p><ul><li>You can split big widgets into smaller ones</li><li>Move state out of widgets</li><li>Clean up build methods …without accidentally breaking user flows.</li></ul><p>…………………………………………………………………………………………………</p><h3>3️⃣ Golden tests — protect UI appearance</h3><p>They check that:</p><ul><li>The UI looks the same as before</li></ul><p>Why this helps refactoring:</p><ul><li>You can reorganize layout code</li><li>Replace widgets</li><li>Optimize performance …while ensuring the design doesn’t change unexpectedly.</li></ul><p>…………………………………………………………………………………………………</p><h3>How this enables fearless refactoring</h3><p>Because tests exist, you can think:</p><blockquote><em>“I can refactor this now. If something breaks, tests will catch it.”</em></blockquote><p>This removes fear and hesitation, which is key to evergreen refactoring.</p><p>…………………………………………………………………………………………………</p><h3>Simple rule of thumb (easy to follow)</h3><p>You don’t need tests everywhere.</p><p>Just:</p><ul><li>🧠 Logic → protected by unit tests</li><li>🔑 Important screens → protected by widget tests</li><li>🎨 Design-critical UI → protected by golden tests</li></ul><p>That’s enough to refactor continuously and safely.</p><h3>6. Stay evergreen with Flutter updates</h3><p>Flutter evolves fast. Evergreen refactoring includes:</p><ul><li>Removing deprecated APIs early</li><li>Adopting new widgets (PopScope, Material 3, etc.)</li><li>Updating lint rules (flutter_lints, very_good_analysis)</li></ul><p>Don’t let deprecations pile up.</p><h3>7. Performance-driven refactoring</h3><p>Refactor when you notice:</p><ul><li>Unnecessary rebuilds</li><li>Overuse of setState</li><li>Heavy work inside build()</li></ul><p>Examples:</p><ul><li>Use const widgets aggressively</li><li>Split widgets to reduce rebuild scope</li><li>Replace ListView.builder misuse</li><li>Move async work out of UI</li></ul><h3>Practical Evergreen Refactor checklist (Flutter)</h3><p>When working on a file, ask:</p><ul><li>❓ Is this widget doing too much?</li><li>❓ Can this be a smaller widget?</li><li>❓ Is business logic inside build()?</li><li>❓ Are names clear?</li><li>❓ Can this state be local?</li><li>❓ Is this feature isolated properly?</li><li>❓ Can I add a test before changing this?</li></ul><p>If yes → refactor now, not later.</p><h3>What Evergreen Refactor is NOT</h3><p>❌ Not:</p><ul><li>A full rewrite</li><li>A “let’s change everything to Riverpod” task</li><li>A one-time cleanup</li></ul><p>✅ It IS:</p><ul><li>Ongoing</li><li>Low-risk</li><li>Habitual</li><li>Team-friendly</li></ul><blockquote><em>Evergreen refactoring in Flutter = constantly improving code in small, safe steps so your app never becomes hard to change.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78506f3d9956" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Mobile Apps Track Installations and Attribution on iOS and Android]]></title>
            <link>https://medium.com/@mohamedebrahim7/how-mobile-apps-track-installations-and-attribution-on-ios-and-android-23ea1b782bfa?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/23ea1b782bfa</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 14:12:50 GMT</pubDate>
            <atom:updated>2026-10-19T14:12:50.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmZjdiOwOW1Pqnmyx7qVbA.png" /></figure><p>If you’ve ever wondered how apps know whether a user came from a Facebook or Snapchat ad, the answer lies in mobile measurement partners (MMPs) and the integration of SDKs into your app. Understanding this is crucial for mobile developers and marketers alike.</p><h3>1. Why We Need MMPs</h3><p>Apps alone cannot reliably know where a user came from after installing. The MMP acts as a neutral middle layer:</p><ul><li>Between ad networks (Snapchat, Facebook, TikTok)</li><li>And your app</li></ul><p>It answers the key question: <em>Which ad caused this install or purchase?</em></p><p>Without an MMP, attribution data is incomplete, fragmented, or impossible to trust.</p><h3>2. How Android Attribution Works</h3><ul><li>User clicks an ad → Google Play stores a referrer string.</li><li>User installs the app → On first launch, the SDK asks Google Play for the referrer.</li><li>SDK sends referrer data to the MMP → MMP matches the install with the ad click.</li><li>Any in-app events (purchase, registration, screen views) after installation are sent via SDK to the MMP, and attributed to the original campaign.</li></ul><p>Key point: Google Play only provides referrer once, on first launch. Subsequent app opens use stored SDK data to link events.</p><h3>3. How iOS Attribution Works</h3><p>iOS is more privacy-focused:</p><ul><li>User clicks an ad → Network registers click with Apple SKAdNetwork.</li><li>User installs the app → Apple sends a signed postback to the ad network or MMP, confirming a conversion occurred.</li><li>The app itself does not know the source initially.</li><li>MMP SDK integration is necessary for post-install event tracking. The SDK retrieves the campaign ID from the MMP on first launch, stores it locally, and any later events are attributed to that campaign.</li></ul><p>Important distinction: iOS preserves user privacy — SKAdNetwork only provides aggregate or anonymized data to the network.</p><h3>4. How MMP Links Users to Campaigns</h3><ul><li>The SDK generates a local UUID on first launch.</li><li>MMP matches this UUID with the SKAdNetwork postback (iOS) or install referrer (Android).</li><li>Any subsequent events sent with this UUID are attributed to the correct campaign.</li></ul><p>This allows marketers to measure ROI, optimize campaigns, and detect fraudulent installs, without compromising user privacy.</p><h3>5. Popular MMP Platforms</h3><ul><li>AppsFlyer — Industry leader; best for large-scale campaigns and advanced analytics.</li><li>Adjust — Strong analytics and privacy, often simpler for smaller apps.</li><li>Branch — Focus on deep linking and post-install attribution.</li></ul><h3>6. Key Takeaways</h3><ul><li>Attribution is not magic; it relies on pre-install tracking (click) + post-install data (referrer or SKAdNetwork).</li><li>SDKs are essential for post-install event tracking and linking in-app actions to campaigns.</li><li>Android and iOS differ in implementation, but the goal is the same: accurate campaign ROI while preserving user privacy.</li></ul><p>This framework allows developers, marketers, and product teams to make data-driven decisions, optimize campaigns, and ensure transparent attribution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23ea1b782bfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hunt for a Truly Unique Android Device ID]]></title>
            <link>https://medium.com/@mohamedebrahim7/the-hunt-for-a-truly-unique-android-device-id-e1796da15b83?source=rss-80cbd510867b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1796da15b83</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mohamed Ebrahim]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 14:08:00 GMT</pubDate>
            <atom:updated>2026-10-19T14:08:00.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzQquHU_3wVWY0liwzTetg.png" /></figure><p>A Flutter developer’s real journey through IMEI restrictions, Android ID surprises, hardware fingerprinting, and the final solution — MediaDrm.</p><h3>The problem that started it all</h3><p>I was building an app. Simple requirement on the surface: each employee account must be permanently tied to one physical device. Log in on your phone once — that’s your device. No sharing. No workarounds. One account, one device. Forever.</p><p>On iOS, the solution was elegant and well-known: store a UUID in the Keychain. The Keychain survives app uninstall, OS updates, and everything short of a factory reset. It’s hardware-level, isolated, and rock solid. iOS solved this problem years ago.</p><p>Android, on the other hand, sent me on a weeks-long journey I didn’t expect.</p><h3>Phase 1 — The Android ID trap</h3><p>My first instinct, like most developers, was to use Android ID — officially known as Settings.Secure.ANDROID_ID. It’s the “standard” identifier. Every Flutter developer knows it. The device_info_plus package exposes it cleanly as androidInfo.id.</p><p>I shipped with it. Users started onboarding. Everything looked fine.</p><blockquote><em>Then one of my users accepted an Android OS update — and their Android ID changed. Their account was suddenly locked out of their own device.</em></blockquote><p>I was shocked. I had assumed Android ID was stable. It isn’t. Here’s why Google weakened it intentionally:</p><p>1️⃣ Android 8.0+</p><p>Android ID scoped per app signing key</p><p>The same physical device shows a different Android ID to different apps. Cross-app tracking killed.</p><p>2️⃣ Always</p><p>Resets on factory reset</p><p>Any factory reset generates a brand new Android ID.</p><p>3️⃣ Observed in production</p><p>Can change on major OS updates</p><p>This is what hit me. On certain devices and OEM implementations, a major Android update can trigger an Android ID reset.</p><p>Android ID was out. I needed something genuinely hardware-bound.</p><h3>Phase 2 — The hardware fingerprint idea</h3><p>My next idea: combine hardware fields that never change. Things baked into the physical chip and motherboard. Flutter’s device_info_plus exposes several of these:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tawJOOTq3zbQs4oM" /></figure><p>These fields are stable — but they are not unique. Two Samsung A15s from the same production batch will have <em>identical values</em> across all of them. A hardware fingerprint alone cannot distinguish two physically separate phones of the same model.</p><p>I needed uniqueness. Back to the drawing board.</p><h3>Phase 3 — Understanding the full landscape</h3><p>I came across a detailed analysis from IdentX Labs that laid out the full evolution of Android device identifiers. It confirmed what I was experiencing and gave me the language to understand it properly.</p><p>1️⃣ Pre Android 10</p><p>IMEI — the gold standard that died</p><p>Globally unique, hardware-backed, never changed. Perfect. Google killed third-party access in Android 10 for privacy reasons. It’s gone.</p><p>2️⃣ Android 8+</p><p>Android ID — deliberately weakened</p><p>Scoped per app, resets on factory reset, can change on updates. Not reliable for device binding.</p><p>3️⃣ Current</p><p>GSF ID — risky</p><p>Tied to the Google account on the device. If the user logs out of their Google account from Settings, the GSF ID changes. Too fragile.</p><p>4️⃣ Current · DRM</p><p>MediaDrm / Widevine ID — the survivor</p><p>Hardware-provisioned during device setup. Persists across app reinstalls, OS updates, and often factory resets. This became my solution.</p><h3>The final solution — MediaDrm + hardware fingerprint</h3><p>MediaDrm provides a device-unique identifier through Android’s Widevine DRM system. It is provisioned during device manufacturing and tied to the hardware security chip. It was originally designed for content protection — Netflix, Disney+ and similar apps use it — but its properties make it the best available persistent device identifier for third-party apps.</p><p>However, research shows that approximately 2.5% of MediaDrm IDs collide — meaning two different physical devices can share the same ID, particularly within the same model line. For a security-critical attendance app, that’s unacceptable.</p><p>The fix: combine MediaDrm with the hardware fingerprint. Even in the 2.5% collision case, the hardware combination differs enough to produce a unique hash.</p><pre>DEVICE_ID = SHA256( MediaDrmID + board + hardware + manufacturer + model + device )</pre><h3>Behaviour across real-world scenarios</h3><p>ScenarioResultNotesApp reinstallSame IDMediaDrm survives uninstallOS updateSame IDHardware chip unchangedTwo Samsung A15sDifferent IDsDifferent MediaDrm provisioningGoogle account logoutSame IDNot tied to Google accountFactory resetNew IDSame behaviour as iOS KeychainOld device (no Widevine L3)FallbackUses hardware fingerprint onlyPermissions requiredNoneNo manifest changes needed</p><h3>The iOS side for completeness</h3><p>On iOS the answer remains the Keychain. Store a UUID on first launch and it persists through everything except a factory reset — exactly matching the Android behaviour described above.</p><p>The mental model for cross-platform device binding becomes:</p><p>iOS: UUID stored in Keychain · Android: SHA256(MediaDrm + hardware fingerprint) Both survive reinstall and updates. Both reset on factory reset. Both require zero permissions.</p><h3>What I learned the hard way</h3><p>Google has been systematically closing every hardware identifier for privacy reasons. IMEI — gone. Serial number — gone. Android ID — deliberately weakened. This isn’t a bug. It’s by design.</p><p>The honest summary of the Android identifier landscape in 2025:</p><h3>The only reliable path</h3><p>There is no single on-device identifier that is simultaneously unique, persistent, and permission-free on all Android versions. The closest available option is MediaDrm combined with hardware fields, hashed together. For devices that don’t support Widevine L3, fall back to hardware fingerprint only. Accept that factory reset is the one legitimate event that creates a new identity — just like iOS does.</p><p>For enterprise apps like attendance systems, this is acceptable. A factory reset is a deliberate wipe. Requiring the employee to re-register their device after a full reset is a reasonable policy, not a bug.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1796da15b83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>