You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Flutter/barcode/accessibility.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ documentation: ug
11
11
12
12
## Sufficient contrast
13
13
14
-
The `SfBarcodeGenerator`[theming](https://help.syncfusion.com/flutter/themes) support offers a consistent and standardized look, as well as the ability to customize colors for all UI elements.
14
+
The [`SfBarcodeGenerator`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator-class.html)[theming](https://help.syncfusion.com/flutter/themes) support offers a consistent and standardized look, as well as the ability to customize colors for all UI elements.
15
15
16
16
You can customize colors for the following elements:
The `SfBarcodeGenerator` automatically adjusts font size based on device settings and scales according to the `MediaQueryData.textScaleFactor`. It also allows you to change the font size of all text elements in the barcode generator.
22
+
The [`SfBarcodeGenerator`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator-class.html) automatically adjusts font size based on device settings and scales according to the [`MediaQueryData.textScaleFactor`](https://api.flutter.dev/flutter/widgets/MediaQueryData/textScaleFactor.html). It also allows you to change the font size of all text elements in the barcode generator.
23
23
*[Input value of barcode](https://help.syncfusion.com/flutter/barcode/barcode-customization#text-customization)
@@ -44,24 +42,27 @@ The text style can be customized using the [`textStyle`](https://pub.dev/documen
44
42
45
43
{% highlight dart %}
46
44
47
-
@override
48
-
Widget build(BuildContext context) {
45
+
@override
46
+
Widget build(BuildContext context) {
49
47
return Scaffold(
50
-
backgroundColor: Colors.white,
51
-
body: Center(
52
-
child: Container(
53
-
height: 150,
54
-
width: 300,
55
-
child: SfBarcodeGenerator(
56
-
value: '12634388927',
57
-
58
-
textStyle: TextStyle(fontFamily: 'Times',
59
-
fontSize: 16, fontStyle: FontStyle.italic,
60
-
fontWeight: FontWeight.bold,
61
-
color: Colors.red),
62
-
showValue: true)
63
-
)
64
-
)
48
+
backgroundColor: Colors.white,
49
+
body: Center(
50
+
child: Container(
51
+
height: 150,
52
+
width: 300,
53
+
child: SfBarcodeGenerator(
54
+
value: '12634388927',
55
+
textStyle: TextStyle(
56
+
fontFamily: 'Times',
57
+
fontSize: 16,
58
+
fontStyle: FontStyle.italic,
59
+
fontWeight: FontWeight.bold,
60
+
color: Colors.red,
61
+
),
62
+
showValue: true,
63
+
),
64
+
),
65
+
),
65
66
);
66
67
}
67
68
@@ -75,20 +76,21 @@ Control the space between the text and the barcode with the [`textSpacing`](http
75
76
76
77
{% highlight dart %}
77
78
78
-
@override
79
-
Widget build(BuildContext context) {
79
+
@override
80
+
Widget build(BuildContext context) {
80
81
return Scaffold(
81
-
backgroundColor: Colors.white,
82
-
body: Center(
83
-
child: Container(
84
-
height: 150,
85
-
width: 300,
86
-
child: SfBarcodeGenerator(
87
-
value: '12634388927',
88
-
textSpacing: 25,
89
-
showValue: true)
90
-
)
91
-
)
82
+
backgroundColor: Colors.white,
83
+
body: Center(
84
+
child: Container(
85
+
height: 150,
86
+
width: 300,
87
+
child: SfBarcodeGenerator(
88
+
value: '12634388927',
89
+
textSpacing: 25,
90
+
showValue: true,
91
+
),
92
+
),
93
+
),
92
94
);
93
95
}
94
96
@@ -98,26 +100,27 @@ Control the space between the text and the barcode with the [`textSpacing`](http
98
100
99
101
**Horizontal text alignment**
100
102
101
-
The horizontal text alignment can be managed with the [`textAlign`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator/textAlign.html) property of barcode generator. Position the displayed text at the `start`, `center` or `end` of the control. The default value of [`textAlign`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator/textAlign.html) property is center.
103
+
The horizontal text alignment can be managed with the [`textAlign`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator/textAlign.html) property of barcode generator. Position the displayed text at the [`start`](https://api.flutter.dev/flutter/dart-ui/TextAlign.html#start), [`center`](https://api.flutter.dev/flutter/dart-ui/TextAlign.html#center) or [`end`](https://api.flutter.dev/flutter/dart-ui/TextAlign.html#end) of the control. The default value of [`textAlign`](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/SfBarcodeGenerator/textAlign.html) property is center.
102
104
103
105
{% highlight dart %}
104
106
105
-
@override
106
-
Widget build(BuildContext context) {
107
+
@override
108
+
Widget build(BuildContext context) {
107
109
return Scaffold(
108
-
backgroundColor: Colors.white,
109
-
body: Center(
110
-
child: Container(
111
-
height: 150,
112
-
width: 240,
113
-
child: SfBarcodeGenerator(
114
-
value: '12634',
115
-
textAlign: TextAlign.end,
116
-
showValue: true)
117
-
)
118
-
)
119
-
);
120
-
}
110
+
backgroundColor: Colors.white,
111
+
body: Center(
112
+
child: Container(
113
+
height: 150,
114
+
width: 240,
115
+
child: SfBarcodeGenerator(
116
+
value: '12634',
117
+
textAlign: TextAlign.end,
118
+
showValue: true,
119
+
),
120
+
),
121
+
),
122
+
);
123
+
}
121
124
122
125
{% endhighlight %}
123
126
@@ -135,23 +138,24 @@ The following code snippet shows the one dimensional barcode with [`module`](htt
0 commit comments