| 1 | import 'package:cake_wallet/generated/i18n.dart'; |
| 2 | import 'package:cake_wallet/src/widgets/cake_image_widget.dart'; |
| 3 | import 'package:flutter/material.dart'; |
| 4 | |
| 5 | class WCHeroCard extends StatelessWidget { |
| 6 | const WCHeroCard(); |
| 7 | |
| 8 | @override |
| 9 | Widget build(BuildContext context) { |
| 10 | final theme = Theme.of(context); |
| 11 | final colors = theme.colorScheme; |
| 12 | return Container( |
| 13 | padding: const EdgeInsets.all(12), |
| 14 | decoration: BoxDecoration( |
| 15 | color: colors.surfaceContainerHigh, |
| 16 | borderRadius: BorderRadius.circular(20), |
| 17 | ), |
| 18 | child: Column( |
| 19 | children: [ |
| 20 | ClipRRect( |
| 21 | borderRadius: BorderRadius.circular(12), |
| 22 | child: CakeImageWidget( |
| 23 | imageUrl: 'assets/new-ui/walletconnect_icon.svg', |
| 24 | width: 36, |
| 25 | height: 36, |
| 26 | fit: BoxFit.cover, |
| 27 | ), |
| 28 | ), |
| 29 | const SizedBox(height: 10), |
| 30 | Text( |
| 31 | S.of(context).walletConnect, |
| 32 | style: theme.textTheme.titleMedium?.copyWith( |
| 33 | fontWeight: FontWeight.w500, |
| 34 | letterSpacing: -0.08, |
| 35 | ), |
| 36 | ), |
| 37 | const SizedBox(height: 10), |
| 38 | Text( |
| 39 | S.of(context).wc_pairing_list_header_subtitle, |
| 40 | textAlign: TextAlign.center, |
| 41 | style: theme.textTheme.bodySmall?.copyWith( |
| 42 | letterSpacing: -0.06, |
| 43 | color: colors.onSurfaceVariant, |
| 44 | ), |
| 45 | ), |
| 46 | ], |
| 47 | ), |
| 48 | ); |
| 49 | } |
| 50 | } |