Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions packages/syncfusion_flutter_barcodes/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

* No changes.

## [31.2.15] - 11/25/2025

**General**

* The compatible version of our Flutter barcodes widget has been updated to Flutter SDK 3.38.

## [31.1.20] - 09/17/2025

**General**

* The compatible version of our Flutter barcodes widget has been updated to Flutter SDK 3.35.

## [30.1.37] - 06/25/2025

**General**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
plugins {
id "com.android.application"
id "kotlin-android"
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
id("dev.flutter.flutter-gradle-plugin")
}

android {
namespace = "com.example.example"
namespace = "com.example.barcodes_example"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
jvmTarget = JavaVersion.VERSION_11.toString()
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.example"
applicationId = "com.example.barcodes_example"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
Expand All @@ -34,7 +34,7 @@ android {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
signingConfig = signingConfigs.getByName("debug")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="example"
android:label="barcodes_example"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.example
package com.example.barcodes_example

import io.flutter.embedding.android.FlutterActivity

Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions packages/syncfusion_flutter_barcodes/example/android/build.gradle

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
allprojects {
repositories {
google()
mavenCentral()
}
}

val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)

subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}

tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath =
run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}

includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.9.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ class _SfBarcodeGeneratorState extends State<SfBarcodeGenerator> {
return Container(
color: widget.backgroundColor ?? _barcodeThemeData.backgroundColor,
child: SfBarcodeGeneratorRenderObjectWidget(
value: widget.value!,
value: widget.value,
symbology: widget.symbology,
foregroundColor: widget.barColor ?? _barcodeThemeData.barColor,
showText: widget.showValue,
textSpacing: widget.textSpacing,
textStyle: _barcodeThemeData.textStyle!,
textStyle: _barcodeThemeData.textStyle,
symbologyRenderer: _symbologyRenderer,
textSize: _textSize,
textAlign: widget.textAlign,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CodabarRenderer extends SymbologyRenderer {
'8': '100110101',
'9': '110100101',
'-': '101001101',
'\$': '101100101',
r'$': '101100101',
':': '1101011011',
'/': '1101101011',
'.': '1101101101',
Expand Down Expand Up @@ -70,7 +70,7 @@ class CodabarRenderer extends SymbologyRenderer {
? offset.dx
: getLeftPosition(
barTotalLength,
symbology!.module!,
symbology!.module,
size.width,
offset.dx,
);
Expand All @@ -85,7 +85,7 @@ class CodabarRenderer extends SymbologyRenderer {
ratio = symbology!.module!.toDouble();
} else {
// Calculates the bar length based on number of individual bar codes
final int singleModule = (size.width ~/ barTotalLength).toInt();
final int singleModule = size.width ~/ barTotalLength;
ratio = singleModule.toDouble();
final double leftPadding = (size.width - (barTotalLength * ratio)) / 2;
left += leftPadding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Code128Renderer extends SymbologyRenderer {
code128ACharacterSets.add('!');
code128ACharacterSets.add('"');
code128ACharacterSets.add('#');
code128ACharacterSets.add('\$');
code128ACharacterSets.add(r'$');
code128ACharacterSets.add('%');
code128ACharacterSets.add('&');
// ignore: avoid_escaping_inner_quotes
Expand Down Expand Up @@ -73,7 +73,7 @@ class Code128Renderer extends SymbologyRenderer {
code128ACharacterSets.add('Y');
code128ACharacterSets.add('Z');
code128ACharacterSets.add('[');
code128ACharacterSets.add('\\');
code128ACharacterSets.add(r'\');
code128ACharacterSets.add(']');
code128ACharacterSets.add('^');
code128ACharacterSets.add('_');
Expand Down Expand Up @@ -126,7 +126,7 @@ class Code128Renderer extends SymbologyRenderer {
code128BCharacterSets.add('!');
code128BCharacterSets.add('"');
code128BCharacterSets.add('#');
code128BCharacterSets.add('\$');
code128BCharacterSets.add(r'$');
code128BCharacterSets.add('%');
code128BCharacterSets.add('&');
// ignore: avoid_escaping_inner_quotes
Expand Down Expand Up @@ -183,7 +183,7 @@ class Code128Renderer extends SymbologyRenderer {
code128BCharacterSets.add('Y');
code128BCharacterSets.add('Z');
code128BCharacterSets.add('[');
code128BCharacterSets.add('\\');
code128BCharacterSets.add(r'\');
code128BCharacterSets.add(']');
code128BCharacterSets.add('^');
code128BCharacterSets.add('_');
Expand Down Expand Up @@ -669,7 +669,7 @@ class Code128Renderer extends SymbologyRenderer {
ratio = symbology!.module!.toDouble();
} else {
// Calculates the bar length based on number of individual bar codes
final int singleModule = (size.width ~/ totalBarLength).toInt();
final int singleModule = size.width ~/ totalBarLength;
ratio = singleModule.toDouble();
final double leftPadding = (size.width - (totalBarLength * ratio)) / 2;
left += leftPadding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ class Code39ExtendedRenderer extends Code39Renderer {
Code39ExtendedRenderer({Symbology? symbology}) : super(symbology: symbology) {
_code39ExtendedMap = <String, String>{
'0': '%U',
'1': '\$A',
'2': '\$B',
'3': '\$C',
'4': '\$D',
'5': '\$E',
'6': '\$F',
'7': '\$G',
'8': '\$H',
'9': '\$I',
'10': '\$J',
'11': '\$K',
'12': '\$L',
'13': '\$M',
'14': '\$N',
'15': '\$O',
'16': '\$P',
'17': '\$Q',
'18': '\$R',
'19': '\$S',
'20': '\$T',
'21': '\$U',
'22': '\$V',
'23': '\$W',
'24': '\$X',
'25': '\$Y',
'26': '\$Z',
'1': r'$A',
'2': r'$B',
'3': r'$C',
'4': r'$D',
'5': r'$E',
'6': r'$F',
'7': r'$G',
'8': r'$H',
'9': r'$I',
'10': r'$J',
'11': r'$K',
'12': r'$L',
'13': r'$M',
'14': r'$N',
'15': r'$O',
'16': r'$P',
'17': r'$Q',
'18': r'$R',
'19': r'$S',
'20': r'$T',
'21': r'$U',
'22': r'$V',
'23': r'$W',
'24': r'$X',
'25': r'$Y',
'26': r'$Z',
'27': '%A',
'28': '%B',
'29': '%C',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Code39Renderer extends SymbologyRenderer {
ratio = symbology!.module!.toDouble();
} else {
// Calculates the bar length based on number of individual bar codes
final int singleModule = (size.width ~/ barTotalLength).toInt();
final int singleModule = size.width ~/ barTotalLength;
ratio = singleModule.toDouble();
final double leftPadding = (size.width - (barTotalLength * ratio)) / 2;
left += leftPadding;
Expand Down Expand Up @@ -209,7 +209,7 @@ class Code39Renderer extends SymbologyRenderer {
/// Represents the code bar value
String _getCode39Character() {
const String code39Character =
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *\$/+%';
r'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. *$/+%';
return code39Character;
}
}
Loading