add haptic feedback to pin + copy receiver address

This commit is contained in:
ryleedavis 2023-04-25 18:02:00 -06:00
parent ef87517705
commit 7fcfd43bfa
2 changed files with 3 additions and 0 deletions

View file

@ -232,6 +232,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () {
HapticFeedback.lightImpact();
clipboard.setData( clipboard.setData(
ClipboardData(text: receivingAddress), ClipboardData(text: receivingAddress),
); );

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart'; import 'package:flutter_svg/flutter_svg.dart';
import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/text_styles.dart'; import 'package:stackwallet/utilities/text_styles.dart';
@ -266,6 +267,7 @@ class PinKeyboard extends StatelessWidget {
void _numberHandler(String number) { void _numberHandler(String number) {
onNumberKeyPressed.call(number); onNumberKeyPressed.call(number);
HapticFeedback.lightImpact();
} }
@override @override