Skip to content

Cryptofonts/cryptofont-flutter

 
 

Repository files navigation

CryptoFonts

CryptoFonts is the biggest open-source library with more than 1000 cryptocurrency icons.

Demo

Usage

import 'package:cryptofont/cryptofont.dart';

class MyWidget extends StatelessWidget {
  const MyWidget({super.key});

  @override
  Widget build(BuildContext context) {
    // Get the icon code if you need it
    final code = cryptoFontIconMapping[symbol.toLowerCase()];

    return Row(
      children: [
        // Use directly
        const Icon(CryptoFontIcons.btc),
        // Or by using the symbol
        Icon(CryptoFontIcons.fromSymbol("BTC")),
        // Case insensitive, this works too
        Icon(CryptoFontIcons.fromSymbol("btc")),
      ],
    );
  }
}

Releases

No releases published

Packages

No packages published

Languages

  • Dart 69.2%
  • C++ 14.6%
  • CMake 13.0%
  • HTML 1.3%
  • C 1.0%
  • Swift 0.8%
  • Other 0.1%