flutter_circle_flags_svg 1.0.4 copy "flutter_circle_flags_svg: ^1.0.4" to clipboard
flutter_circle_flags_svg: ^1.0.4 copied to clipboard

discontinuedreplaced by: circle_flags

Flutter Circle Flags SVG, It is a Flutter package that provides a widget to display a circle flag of a country.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_circle_flags_svg/flutter_circle_flags_svg.dart';
import 'countries.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        brightness: Brightness.dark,
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('flags'),
        ),
        body: Container(
          // child: CircleFlag(
          //   'be',
          //   size: 25,
          // ),
          child: ListView(
            children: [
              for (var country in countries)
                Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: ListTile(
                    leading: CircleFlag(
                      country.countryCode,
                      size: 32,
                    ),
                    title: Text(country.name),
                  ),
                )
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
130
pub points
64%
popularity

Publisher

verified publisherriajul.dev

Flutter Circle Flags SVG, It is a Flutter package that provides a widget to display a circle flag of a country.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg, flutter_svg_provider

More

Packages that depend on flutter_circle_flags_svg