mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
add haptic feedback to pin + copy receiver address
This commit is contained in:
parent
ef87517705
commit
7fcfd43bfa
2 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue