ensign 5.0.4
ensign: ^5.0.4 copied to clipboard
A flag Flutter package. Use for showing flags. All flags came from https://www.un.org/en/member-states/index.html .
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ensign
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
ensign: ^5.0.4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ensign/flag.dart';
import 'package:ensign/flag_enum.dart';
import 'package:ensign/flag_widget.dart';
import 'package:ensign/platform/canvas_kit.dart';
import 'package:ensign/platform/canvas_kit_stub.dart';
import 'package:ensign/platform/canvas_kit_web.dart';
import 'package:ensign/platform/interface_svg.dart';
import 'package:ensign/platform/mobile_svg.dart';
import 'package:ensign/platform/web_svg.dart';