desktop hover cursor for trade details tracking link

This commit is contained in:
julian 2022-11-29 12:12:14 -06:00
parent 07ba82ace0
commit 4324fc6b56

View file

@ -1115,7 +1115,8 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
const SizedBox(
height: 4,
),
Builder(builder: (context) {
Builder(
builder: (context) {
late final String url;
switch (trade.exchangeName) {
case ChangeNowExchange.exchangeName:
@ -1127,7 +1128,13 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
"https://simpleswap.io/exchange?id=${trade.tradeId}";
break;
}
return GestureDetector(
return ConditionalParent(
condition: isDesktop,
builder: (child) => MouseRegion(
cursor: SystemMouseCursors.click,
child: child,
),
child: GestureDetector(
onTap: () {
launchUrl(
Uri.parse(url),
@ -1138,8 +1145,10 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
url,
style: STextStyles.link2(context),
),
),
);
}),
},
),
],
),
),