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, ), ), ); } }