From 7fcfd43bfaa9a257628cf849e6000aa1716f701c Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Tue, 25 Apr 2023 18:02:00 -0600 Subject: [PATCH] add haptic feedback to pin + copy receiver address --- lib/pages/receive_view/receive_view.dart | 1 + lib/widgets/custom_pin_put/pin_keyboard.dart | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/pages/receive_view/receive_view.dart b/lib/pages/receive_view/receive_view.dart index 87587aa46..6890539ff 100644 --- a/lib/pages/receive_view/receive_view.dart +++ b/lib/pages/receive_view/receive_view.dart @@ -232,6 +232,7 @@ class _ReceiveViewState extends ConsumerState { children: [ GestureDetector( onTap: () { + HapticFeedback.lightImpact(); clipboard.setData( ClipboardData(text: receivingAddress), ); diff --git a/lib/widgets/custom_pin_put/pin_keyboard.dart b/lib/widgets/custom_pin_put/pin_keyboard.dart index a578f9c17..1ec611a80 100644 --- a/lib/widgets/custom_pin_put/pin_keyboard.dart +++ b/lib/widgets/custom_pin_put/pin_keyboard.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/text_styles.dart'; @@ -266,6 +267,7 @@ class PinKeyboard extends StatelessWidget { void _numberHandler(String number) { onNumberKeyPressed.call(number); + HapticFeedback.lightImpact(); } @override