Merge pull request #502 from cypherstack/ui-fixes

Added haptic feedback to pin + copy address
This commit is contained in:
julian-CStack 2023-04-26 17:29:26 -06:00 committed by GitHub
commit 42cac55781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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