mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
desktop hover cursor for trade details tracking link
This commit is contained in:
parent
07ba82ace0
commit
4324fc6b56
1 changed files with 34 additions and 25 deletions
|
@ -1115,7 +1115,8 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 4,
|
height: 4,
|
||||||
),
|
),
|
||||||
Builder(builder: (context) {
|
Builder(
|
||||||
|
builder: (context) {
|
||||||
late final String url;
|
late final String url;
|
||||||
switch (trade.exchangeName) {
|
switch (trade.exchangeName) {
|
||||||
case ChangeNowExchange.exchangeName:
|
case ChangeNowExchange.exchangeName:
|
||||||
|
@ -1127,7 +1128,13 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
"https://simpleswap.io/exchange?id=${trade.tradeId}";
|
"https://simpleswap.io/exchange?id=${trade.tradeId}";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return GestureDetector(
|
return ConditionalParent(
|
||||||
|
condition: isDesktop,
|
||||||
|
builder: (child) => MouseRegion(
|
||||||
|
cursor: SystemMouseCursors.click,
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
launchUrl(
|
launchUrl(
|
||||||
Uri.parse(url),
|
Uri.parse(url),
|
||||||
|
@ -1138,8 +1145,10 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
url,
|
url,
|
||||||
style: STextStyles.link2(context),
|
style: STextStyles.link2(context),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}),
|
},
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue