| 1 | import 'package:cake_wallet/generated/i18n.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | class WalletConnectTile extends StatelessWidget { |
| 5 | const WalletConnectTile({required this.onTap}); |
| 6 | |
| 7 | final VoidCallback onTap; |
| 8 | |
| 9 | @override |
| 10 | Widget build(BuildContext context) { |
| 11 | return GestureDetector( |
| 12 | onTap: onTap, |
| 13 | child: Padding( |
| 14 | padding: EdgeInsets.all(24), |
| 15 | child: Row( |
| 16 | mainAxisAlignment: MainAxisAlignment.start, |
| 17 | crossAxisAlignment: CrossAxisAlignment.center, |
| 18 | children: <Widget>[ |
| 19 | Image.asset( |
| 20 | 'assets/images/walletconnect_logo.png', |
| 21 | height: 24, |
| 22 | width: 24, |
| 23 | ), |
| 24 | SizedBox(width: 16), |
| 25 | Expanded( |
| 26 | child: Text( |
| 27 | S.current.walletConnect, |
| 28 | style: Theme.of(context).textTheme.bodyLarge?.copyWith( |
| 29 | color: Theme.of(context).colorScheme.onSurface, |
| 30 | ), |
| 31 | ), |
| 32 | ), |
| 33 | Image.asset( |
| 34 | 'assets/images/select_arrow.png', |
| 35 | color: Theme.of(context).colorScheme.onSurfaceVariant, |
| 36 | ) |
| 37 | ], |
| 38 | ), |
| 39 | ), |
| 40 | ); |
| 41 | } |
| 42 | } |