qrcode_component 1.1.0
qrcode_component: ^1.1.0 copied to clipboard
QRCodeComponent is a Flutter widget that enables easy generation of QR codes within Flutter applications. It offers customizable options for QR code appearance, including colors, error correction leve [...]
example/main.dart
import 'package:flutter/material.dart';
import 'package:qrcode_component/qr_code.dart';
class MyQRScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('QR Code Example'),
),
body: Center(
child: QRCodeComponent(
qrdata: 'Your QR Code Data Here',
qrCodeURL: (SafeUrl url) {
print('QR Code URL: $url');
},
),
),
);
}
}