Flags.Icons
3.1.1
dotnet add package Flags.Icons --version 3.1.1
NuGet\Install-Package Flags.Icons -Version 3.1.1
<PackageReference Include="Flags.Icons" Version="3.1.1" />
<PackageVersion Include="Flags.Icons" Version="3.1.1" />
<PackageReference Include="Flags.Icons" />
paket add Flags.Icons --version 3.1.1
#r "nuget: Flags.Icons, 3.1.1"
#:package Flags.Icons@3.1.1
#addin nuget:?package=Flags.Icons&version=3.1.1
#tool nuget:?package=Flags.Icons&version=3.1.1
Flags.Icons
![]()
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 (noFlagKindenum — 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 →
Links
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 | Versions 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. |
-
.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.