backgroundColor property
Specifies the background color of barcode widgets.
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Center(
child: SfTheme(
data: SfThemeData(
barcodeThemeData: SfBarcodeThemeData(
backgroundColor: Colors.yellow
),
),
child: SfBarcodeGenerator(
value: 'www.sycfusion.com',
symbology: QRCode() ,
showValue: true,
),
),
)
);
}
Implementation
final Color backgroundColor;