country_flags_pro 0.0.5
country_flags_pro: ^0.0.5 copied to clipboard
Flutter package project by Sanjarbek Fayzullayev
Author #
country_flags_pro #
country_flags_pro
is a Flutter package that allows you to display country flags in SVG format. With this package, you can easily fetch and display flags based on country codes.
Features #
- Display flags based on country codes.
- Supports flags in SVG format.
- Easy integration and flexible sizing options.
Getting Started #
Prerequisites #
To use this package, first ensure that your Flutter environment is correctly set up. Then, add the following dependencies to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
flutter_svg: ^1.0.0
country_flags_pro:
copied to clipboard
Prerequisites #
Code example:
import 'package:flutter/material.dart';
import 'package:country_flags_pro/country_flags_pro.dart';
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Country Flags Example'),
),
body: Center(
child: CountryFlag.getFlag(
'uz', // Country code
width: 100.0, // Flag width
height: 60.0, // Flag height
),
),
);
}
}
copied to clipboard