Last updated:
0 purchases
flagkit
Flag Kit #
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.
Usage #
To use Flag Kit, simply add it to your project's pubspec.yaml file:
flagkit: ^0.0.2
copied to clipboard
Then, in your Dart code, import the flagkit package:
import 'package:flagkit/flagkit.dart';
copied to clipboard
Finally, use the Flag widget to display a flag:
Widget build(BuildContext context) {
return Flag.of('GE'); //in this case Georgian flag
}
copied to clipboard
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)
copied to clipboard
Features #
Displays flags for all countries with a valid ISO 3166-1 alpha-2 code
Simple and easy-to-use API
Goals #
Option to have SVG Flags for perfect scaling
Contributing #
Big Thanks to FlagKit.
We welcome contributions to Flag Kit! To get started, please read our contribution guidelines.
License #
Flag Kit is released under the MIT License.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.