Skip to content

MezzLasha/flagkit_flutter

Repository files navigation

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

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)

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages