Skip to content

Instantly share code, notes, and snippets.

@Lxxyx
Created January 10, 2025 11:51
Show Gist options
  • Save Lxxyx/51694080716aabfac480f5d41dfe70ae to your computer and use it in GitHub Desktop.
Save Lxxyx/51694080716aabfac480f5d41dfe70ae to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Crypto Dictionary',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorSchemeSeed: Colors.blue,
),
home: const MyHomePage(title: 'Crypto Dictionary'),
);
}
}
class MyHomePage extends StatefulWidget {
final String title;
const MyHomePage({
super.key,
required this.title,
});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
final List<Map<String, String>> _cryptoWords = [
{
'word': 'HODL',
'meaning': 'Hold On for Dear Life, a term used to encourage investors to hold onto their cryptocurrencies during market fluctuations.',
},
{
'word': 'FUD',
'meaning': 'Fear, Uncertainty, and Doubt, a term used to describe the spreading of misinformation or negative sentiment about a particular cryptocurrency or the market in general.',
},
{
'word': 'ATH',
'meaning': 'All-Time High, a term used to describe when a cryptocurrency reaches its highest price point in its history.',
},
{
'word': 'Altcoin',
'meaning': 'Alternative coin, a term used to describe any cryptocurrency that is not Bitcoin.',
},
{
'word': 'Bull Run',
'meaning': 'A period of time when the price of a cryptocurrency is rapidly increasing, often accompanied by high trading volume.',
},
{
'word': 'Mining',
'meaning': 'The process of verifying transactions on a blockchain network and being rewarded with newly minted coins or tokens.',
},
{
'word': 'Mooning',
'meaning': 'A term used to describe when a cryptocurrency is rapidly increasing in price, often to an unsustainable level.',
},
{
'word': 'Pump and Dump',
'meaning': 'A form of market manipulation where an individual or group artificially inflates the price of a cryptocurrency by spreading false or misleading information, and then sells their coins at the inflated price.',
},
{
'word': 'Satoshi',
'meaning': 'The smallest unit of Bitcoin, equivalent to 0.00000001 BTC, named after the pseudonymous creator of Bitcoin, Satoshi Nakamoto.',
},
{
'word': 'Whale',
'meaning': 'A large-scale investor or holder of a particular cryptocurrency, often with the ability to influence the market with their buying and selling activities.',
},
];
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: ListView.builder(
itemCount: _cryptoWords.length,
itemBuilder: (context, index) {
return Card(
child: ListTile(
title: Text(_cryptoWords[index]['word']!),
subtitle: Text(_cryptoWords[index]['meaning']!),
),
);
},
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment