Skip to content

Commit 3760059

Browse files
Merge pull request #2379 from BPraveenBalu/master
Moved all the widgets release source to flutter widgets
2 parents 1dd3309 + 22c3635 commit 3760059

File tree

861 files changed

+113178
-69223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

861 files changed

+113178
-69223
lines changed

packages/syncfusion_flutter_barcodes/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
**General**
44

5+
* The compatible version of our Flutter barcodes widget has been updated to Flutter SDK 3.32.0.
6+
7+
## [29.1.39] - 22/04/2025
8+
9+
**General**
10+
11+
* The minimum Dart version has been updated to 3.7.
12+
13+
## [29.1.33] - 25/03/2025
14+
15+
**General**
16+
517
* The compatible version of our Flutter barcodes widget has been updated to Flutter SDK 3.29.0.
618
* The Syncfusion<sup>&reg;</sup> Flutter barcodes example sample have been updated to support [kotlin build scripts](https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply) in Android platform.
719
* The Syncfusion<sup>&reg;</sup> Flutter barcodes example sample have been updated to support [Swift package manager](https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-app-developers) in macOS and iOS platforms.

packages/syncfusion_flutter_barcodes/example/lib/main.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ class MyApp extends StatelessWidget {
1111
Widget build(BuildContext context) {
1212
return MaterialApp(
1313
home: Scaffold(
14-
appBar: AppBar(
15-
title: const Text('Barcode Generator Demo'),
16-
),
17-
body: Center(
18-
child: Container(
14+
appBar: AppBar(title: const Text('Barcode Generator Demo')),
15+
body: Center(
16+
child: Container(
1917
height: 200,
2018
child: SfBarcodeGenerator(
2119
value: 'www.syncfusion.com',
2220
symbology: QRCode(),
2321
showValue: true,
2422
),
25-
))),
23+
),
24+
),
25+
),
2626
);
2727
}
2828
}
Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,23 @@
11
name: example
22
description: A new Flutter project.
33

4-
# The following defines the version and build number for your application.
5-
# A version number is three numbers separated by dots, like 1.2.43
6-
# followed by an optional build number separated by a +.
7-
# Both the version and the builder number may be overridden in flutter
8-
# build by specifying --build-name and --build-number, respectively.
9-
# In Android, build-name is used as versionName while build-number used as versionCode.
10-
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11-
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12-
# Read more about iOS versioning at
13-
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
144
version: 1.0.0
155

166
environment:
17-
sdk: '>=3.3.0 <4.0.0'
7+
sdk: ^3.7.0-0
188

199
dependencies:
2010
flutter:
2111
sdk: flutter
2212
syncfusion_flutter_barcodes:
2313
path: ../
2414

25-
# The following adds the Cupertino Icons font to your application.
26-
# Use with the CupertinoIcons class for iOS style icons.
2715
cupertino_icons: ^1.0.2
2816

2917
dev_dependencies:
3018
flutter_test:
3119
sdk: flutter
3220

33-
34-
# For information on the generic Dart part of this file, see the
35-
# following page: https://dart.dev/tools/pub/pubspec
36-
37-
# The following section is specific to Flutter.
3821
flutter:
3922

40-
# The following line ensures that the Material Icons font is
41-
# included with your application, so that you can use the icons in
42-
# the material Icons class.
4323
uses-material-design: true
44-
45-
# To add assets to your application, add an assets section, like this:
46-
# assets:
47-
# - images/a_dot_burr.jpeg
48-
# - images/a_dot_ham.jpeg
49-
50-
# An image asset can refer to one or more resolution-specific "variants", see
51-
# https://flutter.dev/assets-and-images/#resolution-aware.
52-
53-
# For details regarding adding assets from package dependencies, see
54-
# https://flutter.dev/assets-and-images/#from-packages
55-
56-
# To add custom fonts to your application, add a fonts section here,
57-
# in this "flutter" section. Each entry in this list should have a
58-
# "family" key with the font family name, and a "fonts" key with a
59-
# list giving the asset and other descriptors for the font. For
60-
# example:
61-
# fonts:
62-
# - family: Schyler
63-
# fonts:
64-
# - asset: fonts/Schyler-Regular.ttf
65-
# - asset: fonts/Schyler-Italic.ttf
66-
# style: italic
67-
# - family: Trajan Pro
68-
# fonts:
69-
# - asset: fonts/TrajanPro.ttf
70-
# - asset: fonts/TrajanPro_Bold.ttf
71-
# weight: 700
72-
#
73-
# For details regarding fonts from package dependencies,
74-
# see https://flutter.dev/custom-fonts/#from-packages

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/base/barcode_generator.dart

Lines changed: 56 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ class SfBarcodeGenerator extends StatefulWidget {
8484
/// must not be null or empty.
8585
///
8686
/// Default symbology is [Code128].
87-
SfBarcodeGenerator(
88-
{Key? key,
89-
required this.value,
90-
Symbology? symbology,
91-
this.barColor,
92-
this.backgroundColor,
93-
this.showValue = false,
94-
this.textSpacing = 2,
95-
this.textAlign = TextAlign.center,
96-
this.textStyle})
97-
: symbology = symbology ?? Code128(),
98-
super(key: key);
87+
SfBarcodeGenerator({
88+
Key? key,
89+
required this.value,
90+
Symbology? symbology,
91+
this.barColor,
92+
this.backgroundColor,
93+
this.showValue = false,
94+
this.textSpacing = 2,
95+
this.textAlign = TextAlign.center,
96+
this.textStyle,
97+
}) : symbology = symbology ?? Code128(),
98+
super(key: key);
9999

100100
/// Defines the value of the barcode to be rendered.
101101
///
@@ -268,40 +268,51 @@ class _SfBarcodeGeneratorState extends State<SfBarcodeGenerator> {
268268

269269
@override
270270
void didChangeDependencies() {
271-
_barcodeThemeData =
272-
_updateThemeData(Theme.of(context), SfBarcodeTheme.of(context));
271+
_barcodeThemeData = _updateThemeData(
272+
Theme.of(context),
273+
SfBarcodeTheme.of(context),
274+
);
273275
super.didChangeDependencies();
274276
}
275277

276278
SfBarcodeThemeData _updateThemeData(
277-
ThemeData themeData, SfBarcodeThemeData barcodeThemeData) {
279+
ThemeData themeData,
280+
SfBarcodeThemeData barcodeThemeData,
281+
) {
278282
final SfBarcodeThemeData effectiveThemeData = BarcodeThemeData(context);
279283
barcodeThemeData = barcodeThemeData.copyWith(
280-
backgroundColor: barcodeThemeData.backgroundColor ??
281-
widget.backgroundColor ??
282-
effectiveThemeData.backgroundColor,
283-
barColor: barcodeThemeData.barColor ??
284-
widget.barColor ??
285-
effectiveThemeData.barColor,
286-
textStyle: themeData.textTheme.bodyMedium!
287-
.copyWith(
288-
color:
289-
barcodeThemeData.textColor ?? effectiveThemeData.textColor)
290-
.merge(barcodeThemeData.textStyle)
291-
.merge(widget.textStyle));
284+
backgroundColor:
285+
barcodeThemeData.backgroundColor ??
286+
widget.backgroundColor ??
287+
effectiveThemeData.backgroundColor,
288+
barColor:
289+
barcodeThemeData.barColor ??
290+
widget.barColor ??
291+
effectiveThemeData.barColor,
292+
textStyle: themeData.textTheme.bodyMedium!
293+
.copyWith(
294+
color: barcodeThemeData.textColor ?? effectiveThemeData.textColor,
295+
)
296+
.merge(barcodeThemeData.textStyle)
297+
.merge(widget.textStyle),
298+
);
292299
return barcodeThemeData;
293300
}
294301

295302
@override
296303
void didUpdateWidget(SfBarcodeGenerator oldWidget) {
297-
_barcodeThemeData =
298-
_updateThemeData(Theme.of(context), SfBarcodeTheme.of(context));
304+
_barcodeThemeData = _updateThemeData(
305+
Theme.of(context),
306+
SfBarcodeTheme.of(context),
307+
);
299308

300309
if (widget.showValue &&
301310
(oldWidget.value != widget.value ||
302311
oldWidget.textStyle != widget.textStyle)) {
303-
_textSize =
304-
measureText(widget.value.toString(), _barcodeThemeData.textStyle!);
312+
_textSize = measureText(
313+
widget.value.toString(),
314+
_barcodeThemeData.textStyle!,
315+
);
305316
}
306317

307318
if (widget.symbology != oldWidget.symbology) {
@@ -352,23 +363,26 @@ class _SfBarcodeGeneratorState extends State<SfBarcodeGenerator> {
352363
@override
353364
Widget build(BuildContext context) {
354365
if (widget.showValue && _textSize == null) {
355-
_textSize =
356-
measureText(widget.value.toString(), _barcodeThemeData.textStyle!);
366+
_textSize = measureText(
367+
widget.value.toString(),
368+
_barcodeThemeData.textStyle!,
369+
);
357370
}
358371
_symbologyRenderer.getIsValidateInput(widget.value!);
359372
_symbologyRenderer.textSize = _textSize;
360373
return Container(
361374
color: widget.backgroundColor ?? _barcodeThemeData.backgroundColor,
362375
child: SfBarcodeGeneratorRenderObjectWidget(
363-
value: widget.value!,
364-
symbology: widget.symbology,
365-
foregroundColor: widget.barColor ?? _barcodeThemeData.barColor,
366-
showText: widget.showValue,
367-
textSpacing: widget.textSpacing,
368-
textStyle: _barcodeThemeData.textStyle!,
369-
symbologyRenderer: _symbologyRenderer,
370-
textSize: _textSize,
371-
textAlign: widget.textAlign),
376+
value: widget.value!,
377+
symbology: widget.symbology,
378+
foregroundColor: widget.barColor ?? _barcodeThemeData.barColor,
379+
showText: widget.showValue,
380+
textSpacing: widget.textSpacing,
381+
textStyle: _barcodeThemeData.textStyle!,
382+
symbologyRenderer: _symbologyRenderer,
383+
textSize: _textSize,
384+
textAlign: widget.textAlign,
385+
),
372386
);
373387
}
374388
}

packages/syncfusion_flutter_barcodes/lib/src/barcode_generator/base/symbology_base.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ abstract class Symbology {
1111
/// The arguments [module] must be non-negative and greater than 0.
1212
///
1313
Symbology({this.module})
14-
: assert(
15-
(module != null && module > 0) || module == null,
16-
'Module must'
17-
' not be a non-negative value or else it must be equal to null.');
14+
: assert(
15+
(module != null && module > 0) || module == null,
16+
'Module must'
17+
' not be a non-negative value or else it must be equal to null.',
18+
);
1819

1920
/// Specifies the size of the smallest line or dot of the barcode.
2021
///

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy