mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
mouse cursor for desktop favorites card
This commit is contained in:
parent
2c88b017f3
commit
be70d75d75
1 changed files with 183 additions and 174 deletions
|
@ -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> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue