G-EIP-700-TLS-7-1-eip-steph.../lib/features/Settings/key/show_publicKeyQR.dart

28 lines
714 B
Dart

import 'package:flutter/material.dart';
import 'package:pretty_qr_code/pretty_qr_code.dart';
class AffichageClePubliqueQRCodePage extends StatelessWidget {
const AffichageClePubliqueQRCodePage({super.key});
@override
Widget build(BuildContext context) {
// Replace with your actual public key retrieval logic
final String publicKey = 'Votre clé publique ici';
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
title: const Text('Clé Publique en QR Code'),
),
body: Center(
child: PrettyQr(
data: publicKey,
size: 250,
roundEdges: true,
elementColor: Colors.white,
),
),
);
}
}