Updated pages

This commit is contained in:
Patrick Alvin Alcala 2025-12-12 16:39:38 +08:00
parent 1b86907d1b
commit a60d6284ca
3 changed files with 103 additions and 9 deletions

View file

@ -20,7 +20,7 @@ class BarcodeScannerScreen extends StatefulWidget {
}
class _BarcodeScannerScreenState extends State<BarcodeScannerScreen> {
String barcodeResult = "Point the camera at a barcode";
late String qrResult = '';
@override
Widget build(BuildContext context) {
@ -54,7 +54,7 @@ class _BarcodeScannerScreenState extends State<BarcodeScannerScreen> {
),
child: TextWidget(text: 'Scan OCBO e-Sign QR Code', size: 14, bold: true),
),
Gap(50),
const Gap(50),
SizedBox(
height: 350,
child: ClipRRect(
@ -65,13 +65,31 @@ class _BarcodeScannerScreenState extends State<BarcodeScannerScreen> {
final List<Barcode> barcodes = capture.barcodes;
if (barcodes.isNotEmpty && barcodes.first.rawValue != null) {
setState(() {
barcodeResult = barcodes.first.rawValue!;
qrResult = barcodes.first.rawValue!;
});
}
},
),
),
),
const Gap(40),
Container(
padding: EdgeInsets.all(0),
width: 120,
height: 120,
decoration: BoxDecoration(
border: Border.all(
color: Color.fromRGBO(59, 169, 62, 1),
width: 2,
), // Background color of the container
borderRadius: BorderRadius.circular(99), // Optional: rounded corners
),
child: Icon(Icons.thumb_up, color: const Color.fromRGBO(59, 169, 62, 1), size: 80),
),
const Gap(16),
const TextWidget(text: 'Verified', size: 20, bold: true, color: Color.fromRGBO(59, 169, 62, 1)),
const Gap(16),
TextWidget(text: qrResult, size: 20, bold: true),
],
),
),