currency_icons 0.3.0
currency_icons: ^0.3.0 copied to clipboard

A flutter package to display currency flag. Just specify currency name when creating a new Image.

example/main.dart

import 'package:flutter/material.dart';

class Currency extends StatelessWidget {
  // init Currency
  final String currencyName;

  Currency({Key? key, required this.currencyName}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return new Card(
      child: new Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          ListTile(
              leading: Image.asset('icons/currency/${this.currencyName}.png', package: 'currency_icons'),
              title: Text(this.currencyName)),
        ],
      ),
    );
  }
}
3
likes
130
pub points
84%
popularity

A flutter package to display currency flag. Just specify currency name when creating a new Image.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on currency_icons