<?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 Brady Stroud on Medium]]></title>
        <description><![CDATA[Stories by Brady Stroud on Medium]]></description>
        <link>https://medium.com/@bradystroud?source=rss-fb42c6999e53------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tOjKUVqMF-r-q-Zi60zt1Q.jpeg</url>
            <title>Stories by Brady Stroud on Medium</title>
            <link>https://medium.com/@bradystroud?source=rss-fb42c6999e53------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 07:40:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bradystroud/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[MAUI Blazor template — Build your UI once]]></title>
            <link>https://bradystroud.medium.com/maui-blazor-template-84cb6b8db97?source=rss-fb42c6999e53------2</link>
            <guid isPermaLink="false">https://medium.com/p/84cb6b8db97</guid>
            <category><![CDATA[maui-blazor]]></category>
            <category><![CDATA[blazor]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[maui]]></category>
            <category><![CDATA[dotnet-maui]]></category>
            <dc:creator><![CDATA[Brady Stroud]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 13:51:19 GMT</pubDate>
            <atom:updated>2022-11-04T06:39:35.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qeqB7tE72Oe2ThE_LNdmeA.png" /><figcaption>Welcome to the mobile world, Blazor!</figcaption></figure><h3>.NET MAUI Blazor template — Build your UI once</h3><p>Another post for Matt Goldman’s MAUI UI July! <a href="https://goforgoldman.com/2022/05/19/maui-ui-july.html">https://goforgoldman.com/2022/05/19/maui-ui-july.html</a></p><h3>🙋 What is MAUI Blazor</h3><blockquote>MAUI Blazor lets you host Blazor components in .NET MAUI apps to build cross-platform native apps using web UI. The components run natively in the .NET process and render web UI to an embedded web view control using a local interop channel. This hybrid approach gives you the best of native and the web.</blockquote><p>From <strong>Introduction to .NET MAUI Blazor: </strong><a href="https://docs.microsoft.com/en-us/shows/xamarinshow/introduction-to-net-maui-blazor--the-xamarin-show">https://docs.microsoft.com/en-us/shows/xamarinshow/introduction-to-net-maui-blazor--the-xamarin-show</a></p><p>When I first read about MAUI Blazor I was excited at the idea of building my UI just once and being able to run and deploy it everywhere. When I tried it out for the first time I was disappointed to find the official MAUI Blazor template only had a MAUI app — No Blazor.</p><p>I decided I’d build a template with the whole solution in a nice structure so I can start developing fully cross-platform apps quickly.</p><p>Here it is!</p><p><a href="https://github.com/bradystroud/MauiBlazorTemplate">https://github.com/bradystroud/MauiBlazorTemplate</a></p><h3>🏛 Template Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*YLqH8uVZKSiPHrVP3bTWrw.png" /><figcaption>Template file tree</figcaption></figure><h3>MauiBlazor.UI</h3><p>Folder with all the UI projects</p><h3>MauiBlazor.UI.Core</h3><p>This is where all the UI code will be written. This is also where I keep shared code like the ApiClient</p><h3>MauiBlazor.UI.Mobile</h3><p>MAUI application with a BlazorWebView component that uses the razor pages in UI.Core</p><h3>MauiBlazor.UI.Web</h3><p>Blazor WASM app that uses the razor pages in UI.Core</p><h3>MauiBlazor.Shared</h3><p>A shared project between the UI and WebApi for classes that are used on both sides of the application.</p><h3>MauiBlazor.WebApi</h3><p>ASP.NET Core Web API as a backend for the UI.</p><h3>🧑‍💻 Developer Experience</h3><p>Running these applications in different environments is easy.</p><p><strong>Recommend environment: </strong>Windows 10/11, <a href="https://visualstudio.microsoft.com/vs/preview/">VS 2022 Preview</a> (using preview for MAUI support) with MAUI and ASP.NET workloads installed</p><p>To run the Blazor app, open VS 2022 Preview and select MauiBlazor.UI.Web as the startup project. Hit F5 and wait for a browser to open.</p><figure><img alt="Template running on the Web" src="https://cdn-images-1.medium.com/max/1024/0*nzftP8DobqGfxCuX" /><figcaption>Template running on the Web</figcaption></figure><p>To run the MAUI app, open VS 2022 Preview and select MauiBlazor.UI.Mobile as the startup project. Pick a target framework (e.g. Andriod emulator or Windows Machine) and hit F5.</p><figure><img alt="Template runnning MAUI project on Andriod, iOS and Windows 🤯" src="https://cdn-images-1.medium.com/max/1024/0*Fti2URmA_238-NRq" /><figcaption>Template running MAUI project on Andriod, iOS and Windows 🤯</figcaption></figure><blockquote>Tip: You can test out your app on iOS from windows by pairing a Mac in VS. See <a href="https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/">https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/</a></blockquote><p>To run the API as well as one of the UI projects, use the .NET CLI. cd into the MauiBlazor.WebApiproject then dotnet run</p><h3>🤔 What if I want to run some different code on each platform?</h3><p>I saw how this was possible in <a href="https://www.youtube.com/watch?v=sGYIDKx6cY0">this video</a>.</p><p>You can do this by creating an interface in UI.Core, and write unique implementations of it in UI.Web and UI.Mobile.</p><blockquote>Tip: I linked the filename to the file in GitHub</blockquote><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Core/Interfaces/IPlatformService.cs"><strong>UI.Core/Interfaces/IPlatformService.cs</strong></a></p><pre>namespace MauiBlazor.UI.Core.Interfaces;</pre><pre>public interface IPlatformService<br>{<br>   string GetPlatformName();<br>}</pre><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Web/Services/PlatformService.cs"><strong>UI.Web/Services/PlatformService.cs</strong></a></p><pre>using MauiBlazor.UI.Core.Interfaces;</pre><pre>namespace MauiBlazor.UI.Web.Services;</pre><pre>public class PlatformService : IPlatformService<br>{<br>    public string GetPlatformName() =&gt; &quot;Web&quot;;<br>}</pre><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Mobile/Services/PlatformService.cs"><strong>UI.Mobile/Services/PlatformService.cs</strong></a></p><pre>using MauiBlazor.UI.Core.Interfaces; </pre><pre>namespace MauiBlazor.UI.Mobile.Services;</pre><pre>public class PlatformService : IPlatformService <br>{<br>    // Returns the current platform name e.g. WinUI or Andriod<br>    public string GetPlatformName() =&gt;<br>        DeviceInfo.Current.Platform.ToString(); <br>}</pre><p>Once I have both services, I can make them available in UI.Core via dependency injection.</p><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Web/Program.cs"><strong>UI.Web/Program.cs</strong></a></p><pre>builder.Services.AddScoped&lt;IPlatformService, PlatformService&gt;();</pre><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Mobile/MauiProgram.cs"><strong>UI.Mobile/MauiProgram.cs</strong></a></p><pre>builder.Services.AddScoped&lt;IPlatformService, PlatformService&gt;();</pre><p>Now I can inject the method into a component and call GetPlatform()</p><p><a href="https://github.com/bradystroud/MauiBlazorTemplate/blob/main/src/MauiBlazor.UI/MauiBlazor.UI.Core/Pages/Index.razor"><strong>UI.Core/Pages/Index.razor</strong></a></p><pre>@page &quot;/&quot;<br>@inject IPlatformService PlatformService</pre><pre>&lt;PageTitle&gt;Index&lt;/PageTitle&gt;</pre><pre>&lt;h1&gt;Hello, world!&lt;/h1&gt;</pre><pre>Welcome to your new app.</pre><pre>&lt;SurveyPrompt Title=&quot;How is Blazor working for you?&quot; /&gt;</pre><pre>Running on @Platform</pre><pre>@code {<br>    private string Platform =&gt; PlatformService.GetPlatformName();<br>}</pre><h3>🚀 Deploying the application</h3><p>In the future, I’ll set up all the CI/CD stuff needed to build and deploy the application in all supported environments. See GitHub issue: <a href="https://github.com/bradystroud/MauiBlazorTemplate/issues/3">https://github.com/bradystroud/MauiBlazorTemplate/issues/3</a></p><p>Let me know what you would like to see in this template. If you have any ideas/feedback please make a PR or <a href="https://github.com/bradystroud/MauiBlazorTemplate/issues/new">issue</a> and I’ll take a look.</p><p>Looking forward to seeing your feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84cb6b8db97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MAUI vs Flutter — Multi-platform frameworks showdown]]></title>
            <link>https://bradystroud.medium.com/maui-vs-flutter-multi-platform-frameworks-showdown-2d215a9a86f2?source=rss-fb42c6999e53------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d215a9a86f2</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[net-maui]]></category>
            <category><![CDATA[maui]]></category>
            <dc:creator><![CDATA[Brady Stroud]]></dc:creator>
            <pubDate>Sat, 23 Jul 2022 13:06:32 GMT</pubDate>
            <atom:updated>2022-07-28T21:15:53.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhDLD2dzIGbnhY-FOKZ7cg.png" /></figure><h3>MAUI vs Flutter — Multi-platform frameworks showdown</h3><p>Here it is — my post for <a href="https://goforgoldman.com/2022/05/19/maui-ui-july.html">MAUI July</a>.</p><h3>MAUI</h3><p>MAUI (Multi-platform App UI) is a framework from Microsoft.</p><p>Docs: <a href="https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app">https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app</a></p><p><strong>✅ Pros</strong>:</p><ul><li>.NET — MAUI is built on to the .NET ecosystem. This means .NET developers will feel at home and be able to use their favourite Nuget packages</li></ul><p><strong>❌ Cons:</strong></p><ul><li>Immature — Released in May 2022, MAUI hasn’t had a chance to be put to the test</li></ul><h3>Flutter</h3><p>Built, maintained and used by Google, Flutter boasts the ability to deploy to mobile, web and desktop from a single codebase.</p><p>Docs: <a href="https://docs.flutter.dev/get-started/codelab">https://docs.flutter.dev/get-started/codelab</a></p><p><strong>✅ Pros</strong>:</p><ul><li>Maturity — Flutter 1.0 was launched in December 2018 and has had time to build a community</li><li>More supported platforms — Runs on Linux 🐧</li></ul><p><strong>❌ Cons:</strong></p><ul><li>Dart — To build flutter apps, developers will need to learn a new language.</li></ul><h3>🤔 The key differences</h3><p>These are the important considerations when deciding between MAUI and Flutter.</p><ul><li><strong>Flutter apps can be deployed to the web.</strong> This isn&#39;t possible with MAUI but you can create a solution that shares Blazor UI code between a Blazor app and MAUI app. See <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/maui?view=aspnetcore-6.0">https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/maui</a></li><li><strong>Flutter doesn’t have a markup language</strong> — All UI is defined in code (Dart) MAUI lets developers define UI in XAML more info: <a href="https://docs.flutter.dev/resources/faq#where-is-flutters-markup-language-why-doesnt-flutter-have-a-markup-syntax">https://docs.flutter.dev/resources/faq#where-is-flutters-markup-language-why-doesnt-flutter-have-a-markup-syntax</a></li><li><strong>Native UI with MAUI.</strong> Using Flutter without any extra configuration, your UI will look great on Android, but out of place on all other platforms. MAUI apps use native components and look at home on all supported platforms. It’s possible to make Flutter apps look native on iOS using the Cupertino widgets, but this is extra work developers dont need to do with MAUI.</li></ul><figure><img alt="Flutter app looks out of place on iOS" src="https://cdn-images-1.medium.com/max/350/1*DNg448fmh90cyJQ1d2RlAw.png" /><figcaption>👎 Flutter app looks out of place on iOS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/0*7IvKi19MXg9jcInv.png" /><figcaption>👍 iOS MAUI App uses native components</figcaption></figure><h3>📸 Which is more popular?</h3><figure><img alt="Google trends report" src="https://cdn-images-1.medium.com/max/1024/1*x_opajzxmja4-xCzIEEUjg.png" /><figcaption>Google Trends comparison of MAUI and Flutter</figcaption></figure><p>Flutter seems to be far more popular than MAUI. This is expected as MAUI has only been generally available since May.</p><blockquote><strong>Note: </strong>I used ‘.net maui’ instead of ‘maui’ to avoid confusion between Maui, the Island in Hawaii and Maui, the Disney movie character. This could have impacted the results.</blockquote><h3>🧑‍💻 Development experience</h3><h3>MAUI</h3><p><a href="https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app">https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app</a></p><ol><li>Installation — At the time of writing this, installing MAUI is only documented for Windows. Visual Studio 2022 makes installation very easy.</li><li>Hello World — You can create new apps using dotnet new maui or through VS 2022</li><li>Debugging — You can debug or run your MAUI app using dotnet run, but the best dev experience will be using VS 2022</li><li>IDE — VS 2022 is recommend, but I found JetBrains Rider supports MAUI pretty well</li></ol><h3>Flutter</h3><p><a href="https://docs.flutter.dev/get-started/install">https://docs.flutter.dev/get-started/install</a></p><ol><li>Installation — The steps to install Flutter were easy. The process is well documented for Windows, macOS, Linux and even ChromeOS!</li><li>Hello world — Creating a new flutter app is as easy as running flutter create new_app in a terminal</li><li>Debugging — you can run your Flutter app on any target using the flutter run command</li><li>IDE — The Flutter team recommends you use Android Studio or VS Code to build your app</li></ol><h3>📖 Summary</h3><p>MAUI and Flutter are both strong competitors in the cross-platform app space, but the best option heavily depends on the developer&#39;s experience and the application they are building. For example, if you are already a .NET developer learning MAUI will be easier than Flutter. From personal experience, I found that writing UI code in Dart is easier than in XAML but I would still choose MAUI because it is a part of the .NET ecosystem.</p><p>Let me know what you think of MAUI and Flutter. What do you prefer?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d215a9a86f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>