SDK | FlutterPLATFORMS | Android, OSX, Linux, MacOS, Web, Windows
Installing
flutter pub add cryptofont
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get)
dependencies: cryptofont: ^1.0.2+1
Alternatively, your editor might support flutter pub get
Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import'package:cryptofont/cryptofont.dart';
Usage
import'package:cryptofont/cryptofont.dart';classMyWidgetextendsStatelessWidget {constMyWidget({super.key});@overrideWidgetbuild(BuildContext context) {// Get the icon code if you need itfinal code = cryptoFontIconMapping[symbol.toLowerCase()];returnRow( children: [// Use directlyconstIcon(CryptoFontIcons.btc),// Or by using the symbolIcon(CryptoFontIcons.fromSymbol("BTC")),// Case insensitive, this works tooIcon(CryptoFontIcons.fromSymbol("btc")), ], ); }}