country_flag_widget 0.0.5 copy "country_flag_widget: ^0.0.5" to clipboard
country_flag_widget: ^0.0.5 copied to clipboard

A Flutter package to display country flags based on country names.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:country_flag_widget/country_flag_widget.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Country Flag Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Country Flag Example'),
        ),
        body: const Center(
          child: const CountryFlagWidget(countryName: 'Pakistan'),
        ),
      ),
    );
  }
}
13
likes
140
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to display country flags based on country names.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on country_flag_widget