feat(block2): QR of your npub in the profile (scan to share at a fair)
Adds a QrView (painted from the pure-Dart 'barcode' matrix — already transitive via pdf, no native plugin) and shows a QR of your npub on the profile identity card, so you can hand your identity over with a scan. Analyzer clean.
This commit is contained in:
parent
9cc1a5e171
commit
d0d2ecb132
3 changed files with 61 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import '../i18n/strings.g.dart';
|
|||
import '../services/profile_store.dart';
|
||||
import '../services/social_service.dart';
|
||||
import '../services/social_settings.dart';
|
||||
import 'qr_view.dart';
|
||||
import 'theme.dart';
|
||||
|
||||
/// Your own profile: the shareable identity (npub) plus a display name and short
|
||||
|
|
@ -164,7 +165,9 @@ class _IdentityCard extends StatelessWidget {
|
|||
t.profile.idHelp,
|
||||
style: const TextStyle(color: seedMuted, fontSize: 12),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
const SizedBox(height: 14),
|
||||
Center(child: QrView(data: npub, size: 200)),
|
||||
const SizedBox(height: 12),
|
||||
SelectableText(
|
||||
npub,
|
||||
style: const TextStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue