feat: add remote products and qr code for payconic
This commit is contained in:
@@ -20,7 +20,8 @@ class PinEntryView extends StatefulWidget {
|
||||
final Future<bool> Function(String)? onVerify;
|
||||
final Future<bool> Function(String)? onSet;
|
||||
final AppError? Function()? error;
|
||||
final bool showBack;
|
||||
/// Shows a close button that leaves the screen without entering a PIN.
|
||||
final VoidCallback? onClose;
|
||||
|
||||
const PinEntryView({
|
||||
super.key,
|
||||
@@ -30,7 +31,7 @@ class PinEntryView extends StatefulWidget {
|
||||
this.onVerify,
|
||||
this.onSet,
|
||||
this.error,
|
||||
this.showBack = false,
|
||||
this.onClose,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -185,18 +186,16 @@ class _PinEntryViewState extends State<PinEntryView> {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: Column(
|
||||
children: [
|
||||
if (widget.showBack) ...[
|
||||
const Spacer(flex: 1),
|
||||
Row(
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () => {},
|
||||
icon: const Icon(Icons.close),
|
||||
tooltip: 'Back',
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: widget.onClose != null
|
||||
? IconButton(
|
||||
onPressed: _isSubmitting ? null : widget.onClose,
|
||||
icon: const Icon(Icons.close),
|
||||
tooltip: l10n.close,
|
||||
)
|
||||
: const SizedBox(height: 48),
|
||||
),
|
||||
const Spacer(flex: 2),
|
||||
Icon(Icons.lock_outline_rounded, size: 36, color: scheme.primary),
|
||||
const SizedBox(height: 16),
|
||||
|
||||
Reference in New Issue
Block a user