Code:
import 'package:flutter/material.dart';
void main() => runApp(QRCode());
class QRCode extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return QRCodeState();
}
}
class QRCodeState extends State<QRCode> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.yellow[500],
appBar: AppBar(
backgroundColor: Colors.yellow[600],
title: const Align(
alignment: Alignment.center,
child: Text(
'My OR Eode',
style:
TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
),
),
),
body: Center(
child: Card(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Image.network(
"https://cdn.pixabay.com/photo/2017/10/04/12/17/gr-code-2816041_960",
height: 180,
),
),
),
),
),
);
}
}
Video Link: