mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
Give ConfirmSwiper an accessible-navigation button fallback (#3464)
This commit is contained in:
@@ -80,6 +80,7 @@ class WCConnectionRequestSheet extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: ConfirmSwiper(
|
||||
swiperText: S.of(context).wc_swipe_to_approve,
|
||||
accessibleNavigationModeButtonText: S.of(context).wc_action_approve,
|
||||
onConfirmed: () {
|
||||
if (Navigator.canPop(context)) {
|
||||
Navigator.of(context).pop(WCBottomSheetResult.one);
|
||||
|
||||
@@ -82,6 +82,7 @@ class WCSigningRequestSheet extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: ConfirmSwiper(
|
||||
swiperText: swipeLabel,
|
||||
accessibleNavigationModeButtonText: S.of(context).confirm,
|
||||
onConfirmed: () {
|
||||
if (Navigator.canPop(context)) {
|
||||
Navigator.of(context).pop(WCBottomSheetResult.one);
|
||||
|
||||
Reference in New Issue
Block a user