country_flags_pro 0.0.4 copy "country_flags_pro: ^0.0.4" to clipboard
country_flags_pro: ^0.0.4 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

Logo

Logo

Welcome to Uzbekistan #

Logo

32
likes
0
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.15 - 2025.03.30

Flutter package project by Sanjarbek Fayzullayev

License

unknown (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on country_flags_pro