Skip to content

Commit 267b783

Browse files
authored
Add not supported chains hint (#1071)
1 parent 9d95fd0 commit 267b783

1 file changed

Lines changed: 26 additions & 27 deletions

File tree

app/lib/screens/wallets/bridge.dart

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -238,35 +238,34 @@ class _WalletBridgeScreenState extends ConsumerState<WalletBridgeScreen> {
238238
onTransactionChange: onTransactionChange,
239239
disableDeposit: disableDeposit,
240240
updateIsSolana: updateIsSolana),
241-
if (isSolana)
242-
Padding(
243-
padding: const EdgeInsets.symmetric(horizontal: 15.0),
244-
child: Row(
245-
crossAxisAlignment: CrossAxisAlignment.start,
246-
children: <Widget>[
247-
Icon(
248-
Icons.info,
249-
color: Theme.of(context).colorScheme.primary,
250-
size: 16,
251-
),
252-
const SizedBox(width: 8),
253-
Expanded(
254-
child: Text(
255-
'This bridge currently only supports Stellar to Solana transfers.',
256-
style: Theme.of(context)
257-
.textTheme
258-
.bodySmall!
259-
.copyWith(
260-
color:
261-
Theme.of(context).colorScheme.primary,
262-
),
263-
softWrap: true,
264-
),
241+
const SizedBox(height: 20),
242+
Padding(
243+
padding: const EdgeInsets.symmetric(horizontal: 15.0),
244+
child: Row(
245+
crossAxisAlignment: CrossAxisAlignment.start,
246+
children: <Widget>[
247+
Icon(
248+
Icons.info,
249+
color: Theme.of(context).colorScheme.primary,
250+
size: 16,
251+
),
252+
const SizedBox(width: 8),
253+
Expanded(
254+
child: Text(
255+
'Some bridge options are not supported between certain chains.',
256+
style: Theme.of(context)
257+
.textTheme
258+
.bodySmall!
259+
.copyWith(
260+
color:
261+
Theme.of(context).colorScheme.primary,
262+
),
263+
softWrap: true,
265264
),
266-
],
267-
),
265+
),
266+
],
268267
),
269-
const SizedBox(height: 20),
268+
),
270269
ListTile(
271270
title: TextField(
272271
readOnly: true,

0 commit comments

Comments
 (0)