svg_flag
1.5.1, released 3 years ago by inidia.app
Curated collection of all country flags in SVG format for Flutter.
WASM-ready
What it does
Provides a set of SVG flag assets and a widget to display them by country code or ID. It uses flutter_svg to render the SVGs.
AI-written summary of version 1.5.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display country flags in a Flutter app
- You want a lightweight, static asset collection without network fetching
- You prefer SVGs for scalability and styling
Skip it when
- You need dynamic flag updates from a remote source
- You require custom flag designs not in the collection
Strengths
- All flags available as SVG assets
- Easy to use widget API
- No network dependency
- MIT license
Weaknesses
- Large asset bundle size
- No support for custom flag shapes
- No runtime updates
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency to pubspec and import package
import 'package:svg_flag/svg_flag.dart';
SvgFlag(FlagData.id);Alternatives
Packages that do the same job and could replace svg_flag.
Works with
Packages commonly used together with svg_flag: ones it builds on, ones built on it, and its own family.