Flag Kit is a (Blazing Fast) Flutter package that provides a simple way to display a flag for a specific country using its ISO 3166-1 alpha-2 code.
To use Flag Kit, simply add it to your project's pubspec.yaml
file:
flagkit: ^0.0.2
Then, in your Dart code, import the flagkit
package:
import 'package:flagkit/flagkit.dart';
Finally, use the Flag
widget to display a flag:
Widget build(BuildContext context) {
return Flag.of('GE'); //in this case Georgian flag
}
By default, the Flag
widget will size itself to fit its parent widget. If you want to specify a size for the flag, you can do so using the size
parameter:
Flag('US', size: 48)
- Displays flags for all countries with a valid ISO 3166-1 alpha-2 code
- Simple and easy-to-use API
- Option to have SVG Flags for perfect scaling
Big Thanks to FlagKit.
We welcome contributions to Flag Kit! To get started, please read our contribution guidelines.
Flag Kit is released under the MIT License.