<?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 christian okorie on Medium]]></title>
        <description><![CDATA[Stories by christian okorie on Medium]]></description>
        <link>https://medium.com/@chrisokoriedev?source=rss-10eba15ad8c2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ur7RQxJaEGtnkZcuev-mjQ.gif</url>
            <title>Stories by christian okorie on Medium</title>
            <link>https://medium.com/@chrisokoriedev?source=rss-10eba15ad8c2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:37:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chrisokoriedev/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[Why So Many Job Postings on LinkedIn Go Nowhere]]></title>
            <link>https://chrisokoriedev.medium.com/why-so-many-job-postings-on-linkedin-go-nowhere-74f4f1cc38e5?source=rss-10eba15ad8c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f4f1cc38e5</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[christian okorie]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 08:02:25 GMT</pubDate>
            <atom:updated>2026-10-11T08:02:25.246Z</atom:updated>
            <content:encoded><![CDATA[<p>I once received an interview invite for 11 a.m. When I tried to join, more than a hundred other people had been added to the same session.</p><p>Then the recruiter moved the time to 10 a.m. and told us we were all late, even though the email clearly said 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StRTywVw6mI3f7Faw7ja4A.png" /></figure><p>Later, I found out that the “interview” appeared to be a way for the company to promote itself on LinkedIn. From what I could tell, there was never a genuine job opportunity behind it.</p><p>I&#39;d like to say that was a one-off. Unfortunately, it wasn&#39;t.</p><p>And the more I looked into how recruitment works, the more I began to question how many opportunities advertised online are actually worth pursuing.</p><p>The gap between job postings and real opportunities</p><p>Not every job posting leads to a hire. Companies change their plans, budgets get frozen, and qualified candidates can be difficult to find. A gap between advertised openings and completed hires does not automatically mean employers are posting fake jobs.</p><p>But there is evidence that some companies deliberately advertise positions they have no immediate intention of filling.</p><p>In 2024, ResumeBuilder surveyed 1,641 hiring managers about fake job listings. Forty per cent said their companies had posted a fake listing in the previous year, while three in ten said their companies currently had active fake listings.</p><p>The reasons were particularly revealing. Among hiring managers whose companies had posted fake listings, 62% said one reason was to make existing employees feel replaceable. Others said the practice made their companies appear to be growing or open to external talent.</p><p>These are survey findings, not proof that 40% of all job advertisements are fake. But they raise an uncomfortable question: if companies are willing to advertise jobs they don&#39;t intend to fill, how is a job seeker supposed to distinguish a real opportunity from an illusion?</p><p>&quot;Source: ResumeBuilder&#39;s 2024 survey on fake job postings&quot; (https://www.resumebuilder.com/3-in-10-companies-currently-have-fake-job-posting-listed/)</p><p>What I&#39;ve experienced myself</p><p>The numbers made sense to me because I&#39;d already experienced some of the problems firsthand.</p><p>Some LinkedIn posts seem designed primarily to generate engagement. The company gets likes, comments, visibility and perhaps new followers. People looking for work spend time commenting, sharing their details and hoping someone will contact them.</p><p>Not every engagement-driven recruitment post is fake. But when a post offers no verifiable vacancy, no meaningful job description and no clear recruitment process, job seekers have good reason to be cautious.</p><p>The mass interview I described earlier was the most extreme example I encountered.</p><p>I&#39;ve also come across job-search platforms that appeared to prioritise getting users to register over providing verifiable opportunities. I noticed listings labelled “exclusive to India” and struggled to establish whether some of those opportunities existed beyond the platforms advertising them.</p><p>I cannot claim to know the motives behind those listings. But when a platform asks you to sign up for access to an opportunity, it is reasonable to verify the employer and the vacancy before handing over personal information.</p><p>Then there was an experience that made the problem feel more personal.</p><p>I interviewed for a full-stack developer position with a Nigerian based in the United States. The compensation arrangement was troubling, and I was told I would have to “upgrade myself” through trust.</p><p>To me, that sounded like being expected to prove my worth first, with no sufficiently clear guarantee of what I would receive in return.</p><p>There is nothing wrong with probation periods, mentorship or performance-based salary reviews. Those arrangements can be legitimate. The problem arises when an employer expects someone to take on real work without clearly defined compensation, responsibilities or terms.</p><p>It was particularly disappointing because the recruiter knows how difficult the job market can be for developers back home.</p><p>When someone advertises an opportunity, applicants should not have to guess whether their time and skills will be valued.</p><p>When it becomes dangerous</p><p>Wasted time is one problem. Financial loss and identity theft are much more serious.</p><p>In September 2026, the BBC reported on a job seeker who was invited to an interview through LinkedIn by a fake recruiter. He downloaded what appeared to be a normal interview document, only for it to install malicious software. Within hours, attackers had drained £18,000 from his cryptocurrency accounts.</p><p>The incident shows why job seekers need to look beyond whether an opportunity sounds attractive. A convincing recruiter, a professional-looking message and a technical assessment do not automatically make a hiring process legitimate.</p><p>&quot;Source: BBC News, “I lost my savings after a job interview scam”&quot; (https://www.bbc.com/news/articles/crk3xd8j3k5o)</p><p>The FBI has also documented the wider financial damage caused by online crime. Its 2025 Internet Crime Report recorded more than one million complaints across cyber-enabled crimes, with reported losses approaching $21 billion.</p><p>Those figures cover internet crime broadly, not employment scams alone. They nevertheless show the scale of the environment in which online recruitment fraud operates.</p><p>&quot;Source: FBI&#39;s 2025 Internet Crime Report announcement&quot; (https://www.fbi.gov/news/press-releases/cryptocurrency-and-ai-scams-bilk-americans-of-billions)</p><p>A fake job posting does not always involve a criminal. Sometimes an employer advertises a position without intending to fill it. Sometimes a vacancy is outdated. Sometimes someone is impersonating a real company to steal money or information.</p><p>These are different problems, and job seekers need to recognise the difference.</p><h3>Why the silence hurts</h3><p>Applying for a job takes effort. You research the company, update your CV, write an application, complete assessments and sometimes attend multiple interviews.</p><p>Then you wait.</p><p>Days become weeks. No rejection, no explanation and no update.</p><p>Eventually, you begin to wonder whether your CV was the problem, whether your technical skills were inadequate or whether you said something wrong during the interview.</p><p>Sometimes the answer really is that another candidate was a better fit. Sometimes the company has paused recruitment or failed to communicate properly. And sometimes the opportunity was never as real as it appeared.</p><p>That uncertainty is what makes the experience exhausting. You cannot learn from a process when you have no idea what actually happened.</p><p>A rejection can be disappointing, but at least it gives you an answer. Silence leaves you trying to explain an outcome you cannot see.</p><p>Job seekers should be able to improve their applications without automatically blaming themselves for every opportunity that goes nowhere.</p><p>How to recognise a questionable job posting</p><p>Be cautious with “comment interested” posts. A recruiter can legitimately use social media to find candidates, but a comment asking you to express interest is not proof that a vacancy exists. Look for the actual job description, the employer&#39;s identity and a verifiable application process.</p><p>Check how long the listing has been online. An old listing is not automatically fake. Some roles take months to fill, and some employers recruit continuously. However, a vacancy that has been advertised repeatedly for months without a clear update deserves closer scrutiny.</p><p>Look for specific responsibilities. A credible job description should tell you what the role involves, what skills are required and, where possible, who the successful candidate will work with. Vague descriptions that promise exceptional opportunities without explaining the work are a reason to ask questions.</p><p>Be sceptical of unrealistic compensation. A remote position offering unusually high pay for minimal experience or almost no responsibilities deserves scrutiny. Verify the employer before providing sensitive information or downloading files.</p><p>Pay attention to unusual interview arrangements. A group information session is not necessarily fraudulent, but it should not be misrepresented as an individual interview. If the recruiter changes the time without proper notice or cannot explain the next steps, ask for clarification.</p><p>Never accept vague promises about compensation. If an employer asks you to work first and earn trust before discussing what you will be paid, get the terms in writing. Responsibilities, payment, working hours and probation conditions should be clear before you begin.</p><p>What job seekers can do</p><p>Before applying, search for the position on the company&#39;s official careers page. If you find it only on a third-party platform, contact the employer through independently verified channels to confirm that the vacancy is genuine.</p><p>Check the recruiter&#39;s identity and work email, but remember that verification badges and professional profiles are not absolute guarantees. Real accounts can be compromised, and scammers can impersonate legitimate recruiters.</p><p>Be especially careful with technical assessments. Ask what the test involves, why particular software is required and whether it can be completed in a trusted environment. Do not run unknown executables, install unfamiliar interview tools or disable security protections simply because someone claims it is part of the hiring process.</p><p>Never pay a recruiter to secure a job, and do not provide banking credentials, passwords or verification codes as part of an application.</p><p>Most importantly, protect your time. Ask about the interview process, compensation range and hiring timeline early enough to determine whether the opportunity is worth pursuing.</p><p>These precautions cannot eliminate every risk, but they can help you avoid some of the most obvious warning signs.</p><p>The bigger issue is trust</p><p>Job seekers already compete with hundreds of applicants, deal with automated screening and spend hours tailoring applications. They should not also have to wonder whether the vacancy exists, whether the interview is genuine or whether the person contacting them is trying to steal their money.</p><p>Employers deserve the opportunity to change their hiring plans. Recruiters deserve to build talent pipelines. Companies can maintain relationships with potential candidates without immediately hiring them.</p><p>But there is a difference between being transparent about future hiring and advertising a position in a way that leads people to believe recruitment is actively taking place when it isn&#39;t.</p><p>That difference matters because job seekers invest more than a few minutes in these opportunities. They invest hope, energy and time they could have spent pursuing something else.</p><p>I am still applying, building and improving my skills. I know rejection is part of the process, and I don&#39;t expect every application to produce an interview.</p><p>What I do expect is honesty about the opportunity being offered.</p><p>Because when a job posting goes nowhere, the person applying should not always be left wondering what they did wrong.</p><p>Sometimes the question worth asking is whether there was a real opportunity there in the first place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f4f1cc38e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Blurr has gone way beyond “just a Flutter app.”]]></title>
            <link>https://chrisokoriedev.medium.com/building-blurr-has-gone-way-beyond-just-a-flutter-app-293769616cf1?source=rss-10eba15ad8c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/293769616cf1</guid>
            <dc:creator><![CDATA[christian okorie]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 19:11:29 GMT</pubDate>
            <atom:updated>2026-09-30T19:11:29.760Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started, it was simple:</p><p>Flutter + Firebase + an idea.</p><p>But as features grew and more things began happening in the background, I realised I could not keep treating everything as one big application.</p><p>The product was evolving, so the architecture had to evolve too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D_hEeWYQFfY5-3RR" /><figcaption>Photo by <a href="https://unsplash.com/@liahmartens?utm_source=medium&amp;utm_medium=referral">Liah Martens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Today, I think about Blurr in 5 major layers:</p><p>📱 Client<br>Flutter, Riverpod 3, GoRouter, offline caching, interaction tracking, and the product features users interact with every day.</p><p>⚡ Events and Tasks<br>Firestore events feed into a domain event pipeline, while Cloud Tasks handles work that does not need to happen immediately.</p><p>This is where retries, idempotency, task locks, and dead-letter handling became important.</p><p>🧠 Backend Compute<br>Cloud Functions v2 handles feed ranking, trending topics, connection logic, moderation, notifications, and scheduled jobs.</p><p>💾 Data Infrastructure<br>Firestore is still the main datastore. Redis handles faster-access data, Algolia powers search, and Cloud Storage handles media.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CTkqECOk7pa8HmNg" /><figcaption>Photo by <a href="https://unsplash.com/@leoniezettl?utm_source=medium&amp;utm_medium=referral">Leonie Zettl</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>🛡️ Security and Operations<br>Auth, security rules, App Check, rate limiting, structured logs, monitoring, alerts, and CI/CD help keep the system secure and observable.</p><p>And honestly, the biggest lesson has not been about any of the tools.</p><p>It has been about boundaries.</p><p>What belongs where?<br>What needs to happen now?<br>What can happen later?<br>What should never be tightly coupled?</p><p>Good architecture is not about adding more services because you can.</p><p>It is about giving each part of the product a clear responsibility.</p><p>Blurr is still evolving, and some of these decisions will probably change as it grows.</p><p>But that is part of what I enjoy about building products.</p><p>You do not design everything perfectly on day one.</p><p>You build. You hit problems. You refactor. You learn. Then you make the next version better.</p><p>Still building Blurr. 🚀<br>download blurr <br><a href="https://play.google.com/store/apps/details?id=com.anonpeople.messenger">https://play.google.com/store/apps/details?id=com.anonpeople.messenger</a></p><p>#chrisokoriedev #Flutter #Firebase #MobileDevelopment #SoftwareArchitecture #BuildInPublic #IndieHacker</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293769616cf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Convert Flutter Widgets into Shareable Images for Social Media]]></title>
            <link>https://chrisokoriedev.medium.com/how-to-convert-flutter-widgets-into-shareable-images-for-social-media-c72b3948d982?source=rss-10eba15ad8c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c72b3948d982</guid>
            <dc:creator><![CDATA[christian okorie]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 14:13:53 GMT</pubDate>
            <atom:updated>2026-01-13T14:17:49.619Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How to Convert Flutter Widgets into Shareable Images for Social Media</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*MY_uGxenwQLMznv_pgS-UQ.gif" /></figure><p><em>Transform your Flutter widgets into beautiful, Instagram-ready images that users can share on any platforms</em></p><p><strong>Why Convert Widgets to Images? 📸</strong></p><p>Have you ever seen those beautiful quote cards on Instagram? Or those stylish “send me anonymous messages” cards on Twitter? Those are created by converting Flutter widgets into images!</p><p>Instead of just showing a widget on screen, you can:</p><p>- <strong>Save it as an image</strong>— Users can download and share it</p><p>- <strong>Post on social media</strong> — Share on Instagram, Twitter, Facebook, etc.</p><ul><li><strong>Generate dynamic content</strong>— Each user gets a personalized image</li><li><strong>Building a Simple Shareable Card Widget 🎨</strong></li></ul><p>Let’s start with a minimal card widget:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>class SharePreviewCard extends StatelessWidget {<br>final String message;<br>const SharePreviewCard({<br>super.key,<br>required this.message,<br>});<br>@override<br>Widget build(BuildContext context) {<br>return Container(<br>width: 350,<br>padding: EdgeInsets.all(24),<br>decoration: BoxDecoration(<br>gradient: LinearGradient(<br>colors: [Color(0xFF00A389), Color(0xFF00796B)],<br>begin: Alignment.topLeft,<br>end: Alignment.bottomRight,<br>),<br>borderRadius: BorderRadius.circular(16),<br>),<br>child: Column(<br>mainAxisSize: MainAxisSize.min,<br>children: [<br>Text(<br>message,<br>style: TextStyle(<br>color: Colors.white,<br>fontSize: 18,<br>fontWeight: FontWeight.w500,<br>),<br>),<br>SizedBox(height: 16),<br>Text(<br>&#39;Made with Flutter!&#39;,<br>style: TextStyle(<br>color: Colors.white.withOpacity(0.8),<br>fontSize: 12,<br>),<br>),<br>],<br>),<br>);<br>}<br>}</pre><p><strong>What’s happening?</strong></p><p>- `Container` — The card box that holds everything</p><p>- `Column` — Stacks widgets vertically</p><p>- `Text` — Displays the message</p><p>- `SizedBox` — Creates spacing between elements</p><p>— -</p><p><strong>Converting Widget to Image: Two Methods 🖼️</strong></p><p>There are two ways to convert your widget into a shareable image. Let’s explore both!</p><p><strong>Method 1: Using RepaintBoundary (Built into Flutter) ✨</strong></p><p>This method uses Flutter’s built-in `RepaintBoundary` — no extra packages needed for capturing!</p><p><strong>Step 1: Add Required Packages</strong></p><p>dependencies:</p><p>share_plus: ^7.0.0 <em># For sharing images</em></p><p>path_provider: ^2.1.0 <em># For saving files</em></p><p><strong>Step 2: Wrap Your Widget with RepaintBoundary</strong></p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:flutter/rendering.dart&#39;;<br>class ShareableCardScreen extends StatefulWidget {<br>final String message;<br>const ShareableCardScreen({<br>super.key,<br>required this.message,<br>});<br>@override<br>State&lt;ShareableCardScreen&gt; createState() =&gt; _ShareableCardScreenState();<br>}<br>class _ShareableCardScreenState extends State&lt;ShareableCardScreen&gt; {<br>// GlobalKey helps us find the widget later<br>final GlobalKey _repaintKey = GlobalKey();<br>@override<br>Widget build(BuildContext context) {<br>return Scaffold(<br>body: Center(<br>child: RepaintBoundary(<br>key: _repaintKey,<br>child: SharePreviewCard(message: widget.message),<br>),<br>),<br>floatingActionButton: FloatingActionButton(<br>onPressed: _exportAndShare,<br>child: Icon(Icons.share),<br>),<br>);<br>}<br>}</pre><p><strong>Step 3: Capture and Share</strong></p><pre>import &#39;dart:io&#39;;<br>import &#39;dart:ui&#39; as ui;<br>import &#39;package:path_provider/path_provider.dart&#39;;<br>import &#39;package:share_plus/share_plus.dart&#39;;<br>Future&lt;void&gt; _exportAndShare() async {<br>try {<br>// Find the widget using the key<br>final boundary = _repaintKey.currentContext?.findRenderObject()<br>as RenderRepaintBoundary?;<br>if (boundary == null) {<br>throw Exception(&#39;Could not find widget to capture&#39;);<br>}<br>// Capture at high quality (pixelRatio: 3.0)<br>final image = await boundary.toImage(pixelRatio: 3.0);<br>// Convert to bytes<br>final byteData = await image.toByteData(format: ui.ImageByteFormat.png);<br>if (byteData == null) {<br>throw Exception(&#39;Could not convert image&#39;);<br>}<br>final bytes = byteData.buffer.asUint8List();<br>// Save to temporary file<br>final tempDir = await getTemporaryDirectory();<br>final file = File(&#39;${tempDir.path}/share_card_${DateTime.now().millisecondsSinceEpoch}.png&#39;);<br>await file.writeAsBytes(bytes);<br>// Share it!<br>await Share.shareXFiles(<br>[XFile(file.path)],<br>text: &#39;Check out my message!&#39;,<br>);<br>} catch (e) {<br>print(&#39;Failed to export: $e&#39;);<br>}<br>}</pre><p><strong>**Pros of RepaintBoundary:**</strong></p><p>- ✅ Built into Flutter (no extra package)</p><p>- ✅ Full control over the capture process</p><p>- ✅ High quality output with `pixelRatio`</p><p><strong>Cons:</strong></p><p>- ❌ More code to write</p><ul><li>❌ Need to manage GlobalKey and RenderRepaintBoundary</li></ul><p><strong>Method 2: Using Screenshot Package 📦</strong></p><p>This method uses the `screenshot` package — simpler but requires an extra dependency.</p><p><strong>Step 1: Add the Screenshot Package</strong></p><p>dependencies:</p><p>screenshot: ^2.0.0 <em># For capturing widgets</em></p><p>share_plus: ^7.0.0 <em># For sharing images</em></p><p>path_provider: ^2.1.0 <em># For saving files</em></p><p><strong>Step 2: Wrap Your Widget with Screenshot</strong></p><pre><br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:screenshot/screenshot.dart&#39;;<br>class ShareableCardScreen extends StatefulWidget {<br>final String message;<br>const ShareableCardScreen({<br>super.key,<br>required this.message,<br>});<br>@override<br>State&lt;ShareableCardScreen&gt; createState() =&gt; _ShareableCardScreenState();<br>}<br>class _ShareableCardScreenState extends State&lt;ShareableCardScreen&gt; {<br>// ScreenshotController manages the capture<br>final ScreenshotController _screenshotController = ScreenshotController();<br>@override<br>Widget build(BuildContext context) {<br>return Scaffold(<br>body: Center(<br>child: Screenshot(<br>controller: _screenshotController,<br>child: SharePreviewCard(message: widget.message),<br>),<br>),<br>floatingActionButton: FloatingActionButton(<br>onPressed: _exportAndShare,<br>child: Icon(Icons.share),<br>),<br>);<br>}<br>}</pre><p><strong>Step 3: Capture and Share</strong></p><pre><br>import &#39;dart:io&#39;;<br>import &#39;package:path_provider/path_provider.dart&#39;;<br>import &#39;package:share_plus/share_plus.dart&#39;;<br>Future&lt;void&gt; _exportAndShare() async {<br>try {<br>// Capture the widget - much simpler!<br>final imageBytes = await _screenshotController.capture();<br>if (imageBytes == null) {<br>throw Exception(&#39;Could not capture image&#39;);<br>}<br>// Save to temporary file<br>final tempDir = await getTemporaryDirectory();<br>final file = File(&#39;${tempDir.path}/share_card_${DateTime.now().millisecondsSinceEpoch}.png&#39;);<br>await file.writeAsBytes(imageBytes);<br>// Share it!<br>await Share.shareXFiles(<br>[XFile(file.path)],<br>text: &#39;Check out my message!&#39;,<br>);<br>} catch (e) {<br>print(&#39;Failed to export: $e&#39;);<br>}<br>}</pre><p>```</p><p><strong>Pros of Screenshot Package:</strong></p><p>- ✅ Simpler code — just call `capture()`</p><p>- ✅ Less boilerplate</p><p>- ✅ Easy to use</p><p><strong>Cons:</strong></p><p>- ❌ Extra dependency</p><p>- ❌ Less control over quality settings</p><p>— -</p><p><strong>Which Method Should You Use? 🤔</strong></p><p><strong>Use RepaintBoundary if:</strong></p><p>- You want to avoid extra dependencies</p><p>- You need fine control over image quality</p><p>- You’re comfortable with Flutter’s rendering system</p><p><strong>Use Screenshot Package if:</strong></p><p>- You want simpler, cleaner code</p><p>- You don’t mind adding a dependency</p><p>- You want a quick solution</p><p>Both methods work great! Choose based on your needs.</p><p><strong>Complete Example with RepaintBoundary 🎯</strong></p><p>Here’s a complete working example:</p><pre>```dart<br>import &#39;dart:io&#39;;<br>import &#39;dart:ui&#39; as ui;<br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:flutter/rendering.dart&#39;;<br>import &#39;package:path_provider/path_provider.dart&#39;;<br>import &#39;package:share_plus/share_plus.dart&#39;;<br>class ShareableCardScreen extends StatefulWidget {<br>final String message;<br>const ShareableCardScreen({<br>super.key,<br>required this.message,<br>});<br>@override<br>State&lt;ShareableCardScreen&gt; createState() =&gt; _ShareableCardScreenState();<br>}<br>class _ShareableCardScreenState extends State&lt;ShareableCardScreen&gt; {<br>final GlobalKey _repaintKey = GlobalKey();<br>bool _isExporting = false;<br>@override<br>Widget build(BuildContext context) {<br>return Scaffold(<br>appBar: AppBar(title: Text(&#39;Share Card&#39;)),<br>body: Center(<br>child: RepaintBoundary(<br>key: _repaintKey,<br>child: SharePreviewCard(message: widget.message),<br>),<br>),<br>floatingActionButton: FloatingActionButton.extended(<br>onPressed: _isExporting ? null : _exportAndShare,<br>label: _isExporting<br>? Text(&#39;Exporting…&#39;)<br>: Text(&#39;Share&#39;),<br>icon: Icon(Icons.share),<br>),<br>);<br>}<br>Future&lt;void&gt; _exportAndShare() async {<br>setState(() =&gt; _isExporting = true);<br>try {<br>final boundary = _repaintKey.currentContext?.findRenderObject()<br>as RenderRepaintBoundary?;<br>if (boundary == null) {<br>throw Exception(&#39;Could not find widget to capture&#39;);<br>}<br>final image = await boundary.toImage(pixelRatio: 3.0);<br>final byteData = await image.toByteData(format: ui.ImageByteFormat.png);<br>if (byteData == null) {<br>throw Exception(&#39;Could not convert image&#39;);<br>}<br>final bytes = byteData.buffer.asUint8List();<br>final tempDir = await getTemporaryDirectory();<br>final file = File(&#39;${tempDir.path}/share_card_${DateTime.now().millisecondsSinceEpoch}.png&#39;);<br>await file.writeAsBytes(bytes);<br>await Share.shareXFiles(<br>[XFile(file.path)],<br>text: &#39;Check out my message!&#39;,<br>);<br>} catch (e) {<br>if (mounted) {<br>ScaffoldMessenger.of(context).showSnackBar(<br>SnackBar(content: Text(&#39;Failed to export: $e&#39;)),<br>);<br>}<br>} finally {<br>if (mounted) {<br>setState(() =&gt; _isExporting = false);<br>}<br>}<br>}<br>}</pre><p>Key Takeaways 📝</p><p><strong>Widgets</strong> can be converted to images for social media sharing</p><p>- <strong>RepaintBoundary</strong> — Built-in Flutter method (no extra package)</p><p>- <strong>Screenshot Package</strong> — Simpler but requires a dependency</p><p>- <strong>share_plus</strong>— For sharing images to social media</p><p>- <strong>path_provider</strong> — For saving files temporarily</p><p>Both methods work great! Choose the one that fits your project best.</p><p><em>This tutorial is based on the SharePreviewCard widget from the Anon People app. You can find the full implementation in the project repository.</em></p><p>Link to sign up as a tester <br><a href="https://anon-people.web.app/">anon-people.web.app</a></p><p>Link to github <br><a href="https://github.com/chrisokoriedev/capturewidgettoimage">https://github.com/chrisokoriedev/capturewidgettoimage</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c72b3948d982" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>