generateAndDisplayQRCode function
Generate and display QR code for the local server URL
Implementation
Future<void> generateAndDisplayQRCode(String url) async {
try {
// Generate QR code using the QRGenerator class with smaller size
QRGenerator.printQRCodeToTerminal(url, size: 2);
print('🔗 Or manually visit: $url');
} catch (e) {
print('⚠️ Could not generate QR code: $e');
print('🔗 Please manually visit: $url');
}
}