showPrimaryButton method
Displays the primary button.
Implementation
Widget showPrimaryButton() {
return Padding(
padding: const EdgeInsets.fromLTRB(30.0, 45.0, 30.0, 10.0),
child: SizedBox(
height: 40.0,
child: MaterialButton(
elevation: 5.0,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)),
color: Colors.teal,
child: const Text('Scan QR',
style: TextStyle(fontSize: 17.0, color: Colors.white)),
onPressed: () async {
scanQR();
},
),
),
);
}