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:
- SfTheme and SfThemeData, for customizing the visual appearance of the barcode widgets.
- Mixed-in types
- Annotations
Constructors
- SfBarcodeThemeData({Color? backgroundColor, Color? barColor, Color? textColor, TextStyle? textStyle})
-
Initialize the SfBarcode theme data
const
- SfBarcodeThemeData.raw({Brightness? brightness, Color? backgroundColor, Color? barColor, Color? textColor, TextStyle? textStyle})
-
Create a SfBarcodeThemeData given a set of exact values.
All the values must be specified.
factory
Properties
- backgroundColor → Color?
-
Specifies the background color of barcode widgets.
final
- barColor → Color?
-
Specifies the color for barcodes.
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
- textStyle → TextStyle?
-
Specifies the text style for barcode text.
final
Methods
-
copyWith(
{Brightness? brightness, Color? backgroundColor, Color? barColor, Color? textColor, TextStyle? textStyle}) → 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