Submit customer identity proofs and show reviewed limits

This commit is contained in:
Stephan D committed 2026-10-15 02:22:28 +02:00
1 parent 7bf8b8087a
commit 1354551ae8
50 files changed
+1777 -67

No files matched your search

+13 -1
View File
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:sxchnge_kyc/sxchnge_kyc.dart';
import 'photo.dart';
import 'profile.dart';
import '../generated/i18n/app_localizations.dart';
@@ -26,6 +27,10 @@ class IdentityForm extends StatelessWidget {
),
),
const SizedBox(height: 16),
if (p.step == 0) ...[
ProfileForm(provider: p),
const SizedBox(height: 24),
],
LinearProgressIndicator(
value: (p.step + 1) / 3,
semanticsLabel: titles[p.step],
@@ -47,6 +52,10 @@ class IdentityForm extends StatelessWidget {
),
),
if (p.step == 2) ...[
Text(
'${p.profile.fullName}\n${p.profile.dateOfBirth} · ${p.profile.residenceCountry}',
),
const SizedBox(height: 16),
Text(l.kycReviewHelp),
const SizedBox(height: 16),
PhotoPanel(kind: PhotoKind.passport, photo: p.passport, review: true),
@@ -68,7 +77,10 @@ class IdentityForm extends StatelessWidget {
),
FilledButton(
key: const ValueKey('kyc-next'),
onPressed: p.busy || (p.step == 0 ? p.passport : p.selfie) == null
onPressed:
p.busy ||
(p.step == 0 && !p.profile.isComplete) ||
(p.step == 0 ? p.passport : p.selfie) == null
? null
: p.next,
child: Text(l.kycNext),