generateStyledQRCode static method

Future<String> generateStyledQRCode(
  1. String url, {
  2. int size = 20,
  3. int foregroundColor = 0xFF000000,
  4. int backgroundColor = 0xFFFFFFFF,
})

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