generateStyledQRCode static method
Generates QR code with custom styling
Implementation
static Future<String> generateStyledQRCode(
String url, {
int size = 20,
int foregroundColor = 0xFF000000,
int backgroundColor = 0xFFFFFFFF,
}) async {
try {
// Generate actual QR code SVG with custom colors
return _generateStyledSVGString(
url, size, foregroundColor, backgroundColor);
} catch (e) {
throw Exception('Failed to generate styled QR code: $e');
}
}