SfBarcodeThemeData class

Holds the color and typography values for a SfBarcodeTheme. Applies a theme to descendant Syncfusion barcode widgets.

To obtain the current theme, use SfBarcodeTheme.of.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfBarcodeTheme(
      data: SfBarcodeThemeData(
        brightness: Brightness.light
      ),
      child: SfBarcodeGenerator(
        value: 'www.sycfusion.com',
        symbology: QRCode() ,
      )
    ),
  );
}

See also:

Mixed-in types
Annotations

Constructors

SfBarcodeThemeData({Brightness? brightness, Color? backgroundColor, Color? barColor, Color? textColor})
Initialize the SfBarcode theme data
factory
SfBarcodeThemeData.raw({required Brightness brightness, required Color backgroundColor, required Color barColor, required Color textColor})
Create a SfBarcodeThemeData given a set of exact values. All the values must be specified.
const

Properties

backgroundColor Color
Specifies the background color of barcode widgets.
final
barColor Color
Specifies the color for barcodes.
final
brightness Brightness
The brightness of the overall theme of the application for the barcode widgets.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color
Specifies the color for barcode text.
final

Methods

copyWith({Brightness? brightness, Color? backgroundColor, Color? barColor, Color? textColor}) SfBarcodeThemeData
Creates a copy of this barcode theme data object with the matching fields replaced with the non-null parameter values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(SfBarcodeThemeData? a, SfBarcodeThemeData? b, double t) SfBarcodeThemeData?
Returns the barcode theme data