mouse cursor for desktop favorites card

This commit is contained in:
julian 2022-11-16 12:27:57 -06:00
parent 2c88b017f3
commit be70d75d75

View file

@ -13,6 +13,7 @@ import 'package:stackwallet/utilities/format.dart';
import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/conditional_parent.dart';
import 'package:tuple/tuple.dart';
class FavoriteCard extends ConsumerStatefulWidget {
@ -54,7 +55,13 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
final externalCalls = ref.watch(
prefsChangeNotifierProvider.select((value) => value.externalCalls));
return GestureDetector(
return ConditionalParent(
condition: Util.isDesktop,
builder: (child) => MouseRegion(
cursor: SystemMouseCursors.click,
child: child,
),
child: GestureDetector(
onTap: () {
if (Util.isDesktop) {
Navigator.of(context).pushNamed(
@ -225,7 +232,8 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
prefsChangeNotifierProvider
.select((value) => value.currency),
)}",
style: STextStyles.itemSubtitle12(context).copyWith(
style:
STextStyles.itemSubtitle12(context).copyWith(
fontSize: 10,
color: Theme.of(context)
.extension<StackColors>()!
@ -241,6 +249,7 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
),
),
),
),
);
}
}