cryptocoins_icons

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

cryptocoins icons

Cryptocoins Icons for Flutter #
Making Cryptocoins available for Flutter.
Original project at AllienWorks/cryptocoin
Installation #
flutter pub add cryptocoins_icons
copied to clipboard
Usage #
import 'package:cryptocoins_icons/cryptocoins_icons.dart';
copied to clipboard
class BtcIconButton extends StatelessWidget {
Widget build(BuildContext context) {
final List<String> cryptoList = CryptoCoinIcons.getCryptoNames();
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Feature Test'),
),
body: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
if (CryptoCoinIcons.containsCrypto('BTC'))
Icon(
CryptoCoinIcons.BTC,
size: 100.0,
),
Text('BTC'),
for (String n in cryptoList)
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
Icon(
CryptoCoinIcons.getCryptoIcon(n),
size: 100.0,
),
Text(n),
SizedBox(height: 20)
],
),
SizedBox(width: 50),
Column(
children: [
Icon(
CryptoCoinIcons.getCryptoIcon(n, 'alt'),
size: 100.0,
),
Text(n + '_alt'),
SizedBox(height: 20)
],
),
],
),
],
),
),
),
),
);
}
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.