Flags.Icons 3.1.1

dotnet add package Flags.Icons --version 3.1.1
                    
NuGet\Install-Package Flags.Icons -Version 3.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Flags.Icons" Version="3.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Flags.Icons" Version="3.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Flags.Icons" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Flags.Icons --version 3.1.1
                    
#r "nuget: Flags.Icons, 3.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Flags.Icons@3.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Flags.Icons&version=3.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Flags.Icons&version=3.1.1
                    
Install as a Cake Tool

Flags.Icons

Flags.Icons demo

Flag icons from 5 upstream sources — Twemoji (262 country + subdivision emoji), Circle (430, HatScripts), Square (417, kapowaz), Lipis (271, lipis/flag-icons 4×3), FlagHub (259, Alpaq92's maintained fork of madebybowtie/FlagKit) — packaged as drop-in controls for Avalonia, Eto.Forms, .NET MAUI, Aprillz.MewUI, Uno Platform, Windows Forms, WinUI 3 and WPF. Every SVG ships as an embedded resource in the core Flags.Icons package — no runtime download, no file-system access.

Counts as of 2026-06-01; refreshed monthly via the upstream-bump workflow, so any given release may carry slightly different totals — the actual numbers print in the build log.

v3: the FlagKit-style artwork from v1 is back, sourced from the maintained Alpaq92/FlagHub fork and surfaced as a fifth source (FlagHub="US" / FlagHubFlag.US). Additive on top of v2, still breaking vs v1 (no FlagKind enum — use one of the five typed source properties).

Install

dotnet add package Flags.Icons.Avalonia    # or .Eto / .MAUI / .MewUI / .Uno / .WinForms / .WinUi / .WPF

Every platform package transitively pulls in Flags.Icons core.

Usage

One strongly-typed enum per source: TwemojiFlag, CircleFlag, SquareFlag, LipisFlag, FlagHubFlag. FlagIcon exposes one property per source (DependencyProperty / BindableProperty / StyledProperty / plain CLR property, depending on the UI stack); set exactly one and the others auto-clear.

<flag:FlagIcon Twemoji="US" Width="48" Height="36" />
<flag:FlagIcon Circle="US"  Width="48" Height="36" />
<flag:FlagIcon Square="US"  Width="48" Height="36" />
<flag:FlagIcon Lipis="US"   Width="48" Height="36" />
<flag:FlagIcon FlagHub="US" Width="48" Height="36" />
var flag = new FlagIcon { Twemoji = TwemojiFlag.US };

Per-stack XAML namespaces and code-first usage examples in the full README on GitHub →

Source: MIT. Bundled flag SVGs from jdecked/twemoji (graphics CC-BY 4.0, code MIT), HatScripts/circle-flags (MIT), kapowaz/square-flags (MIT), lipis/flag-icons (MIT), Alpaq92/FlagHub (MIT, FlagKit fork).

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Flags.Icons:

Package Downloads
Flags.Icons.Avalonia

Avalonia control that displays flag icons from 4 bundled sources (Twemoji emoji, Circle, Square, Lipis). Avalonia-specific implementation of Flags.Icons.

Flags.Icons.WinForms

Windows Forms control that displays flag icons from 4 bundled sources (Twemoji emoji, Circle, Square, Lipis). WinForms-specific implementation of Flags.Icons. SVGs are rasterized to PNG at runtime via Svg.Skia.

Flags.Icons.Eto

Eto.Forms control that displays flag icons from 4 bundled sources (Twemoji emoji, Circle, Square, Lipis). Eto-specific implementation of Flags.Icons. SVGs are rasterized to PNG at runtime via Svg.Skia.

Flags.Icons.WPF

WPF control that displays flag icons from 4 bundled sources (Twemoji emoji, Circle, Square, Lipis). WPF-specific implementation of Flags.Icons.

Flags.Icons.MewUI

Aprillz.MewUI helpers that display flag icons from 4 bundled sources (Twemoji emoji, Circle, Square, Lipis). MewUI-specific implementation of Flags.Icons. SVGs are rasterized to PNG at runtime via Svg.Skia.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.1 88 6/3/2026
3.1.0 207 6/1/2026
3.0.0 220 5/28/2026
2.0.0 205 5/25/2026
1.3.0 183 5/25/2026
1.2.4 196 5/25/2026
1.2.3 193 5/24/2026