crypto_address_wallet 1.0.0
crypto_address_wallet: ^1.0.0 copied to clipboard
This Crypto Address Wallet class is a widget that displays a cryptocurrency address. It takes a number of parameters as input that allow to set its display and various properties.
//import 'package:crypto_address_wallet/crypto_address_wallet.dart';
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: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({
super.key,
});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text("example crypto_address_wallet"),
),
body: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
/* CryptoAddressWallet(
hash: 'xcdscscsfsdfsdfdsfsfsdsddcvdsfsfds',
isShowCopyIcon: true,
)*/
],
),
),
// This trailing comma makes auto-formatting nicer for build methods.
);
}
}