syncfusion_flutter_barcodes 18.1.55-beta

  • Readme
  • Changelog
  • Example
  • Installing
  • 92

syncfusion_flutter_barcode_banner

Syncfusion Flutter Barcodes #

The Syncfusion Flutter Barcode Generator is a data visualization widget used to generate and display data in a machine-readable format. It provides a perfect approach to encoding input values using supported symbology types.

Disclaimer: This is a commercial package. To use this package, you need to have either a Syncfusion commercial license or Syncfusion Community License. For more details, please check the LICENSE file.

Note: Our packages are now compatible with Flutter for Web. However, this will be in Beta until Flutter for Web becomes stable.

Table of contents #

Barcode Generator features #

  • One-dimensional barcodes - Barcode Generator supports different one-dimensional barcode symbologies such as Code128, EAN8, EAN13, UPA-C, UPA-E, Code39, Code39 Extended, Code93 and Codabar. One-dimensional barcodes

  • Two-dimensional barcode - Barcode Generator supports popular QR Code and Data Matrix.
    Two-dimensional barcode

  • Barcode customization - Customize the visual appearance of barcodes using the backgroundColor and barColor properties, and adjust the size of smallest line or dot of the code using the module property.

  • Text customization -Configure to display the barcode value and customize the position and style of the barcode text.

Get demo application #

Explore the full capabilities of our Flutter widgets on your device by installing our sample browser applications from the following app stores and view samples code in GitHub.

Take a look at the following to learn more about Syncfusion Flutter guages:

Installation #

Install the latest version from pub.

Getting started #

Import the following package.

import 'package:syncfusion_flutter_barcodes/barcodes.dart';

Add Barcode Generator to the widget tree #

Add the Barcode Generator widget as a child of any widget. Here, the widget is added as a child of the container widget and the height to the container is specified (otherwise it will take full container height)

 @override
    Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          body: Center(
              child: Container(
        height: 200,
        child: SfBarcodeGenerator(value: 'www.syncfusion.com'),
      ))),
    );
  }

Add barcode symbology #

Set the required symbology type to the barcode generator based on input value by initializing the symbology property. In the following code snippet, the QR code is set as the barcode symbology.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          body: Center(
              child: Container(
        height: 200,
        child: SfBarcodeGenerator(
          value: 'www.syncfusion.com',
          symbology: QRCode(),
        ),
      ))),
    );
  }

Show value of the barcode #

input values can be displayed by enabling the showValue property of barcodes.

  @override
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          body: Center(
              child: Container(
        height: 200,
        child: SfBarcodeGenerator(
          value: 'www.syncfusion.com',
          symbology: QRCode(),
          showValue: true,
        ),
      ))),
    );
  }

The following screenshot illustrates the result of the previous code sample.

simple radial gauge

Support and feedback #

  • For any other queries, reach our Syncfusion support team or post the queries through the Community forums and submit a feature request or a bug through our Feedback portal.
  • To renew the subscription, click renew or contact our sales team at salessupport@syncfusion.com | Toll Free: 1-888-9 DOTNET.

About Syncfusion #

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 20,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today we provide 1,000+ controls and frameworks for web (ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Blazor, mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, and UWP). We provide ready-to deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.

[18.1.55-beta] - 06/03/2020 #

No changes.

[18.1.54-beta] - 05/26/2020 #

No changes.

[18.1.53-beta] - 05/19/2020 #

No changes.

[18.1.52-beta] - 05/14/2020 #

No changes.

[18.1.48-beta] - 05/05/2020 #

No changes.

[18.1.46-beta] - 04/28/2020 #

No changes.

[18.1.45-beta] - 04/21/2020 #

No changes.

[18.1.44-beta] - 04/14/2020 #

No changes.

[18.1.43-beta] - 04/07/2020 #

No changes.

[18.1.42-beta] - 04/01/2020 #

No changes.

[18.1.36-beta] - 03/19/2020 #

Initial release.

Features

  • One-dimensional barcodes - Barcode Generator supports different one-dimensional barcode symbologies such as Code128, EAN8, EAN13, UPA-C, UPA-E, Code39, Code39 Extended, Code93 and Codabar.
  • Two-dimensional barcode - Barcode Generator supports popular QR Code and Data Matrix.
  • Barcode customization - Customize the visual appearance of barcodes using the backgroundColor and barColor properties, and adjust the size of smallest line or dot of the code using the module property.
  • Text customization -Configure to display the barcode value and customize the position and style of the barcode text.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_barcodes/barcodes.dart';
import 'package:syncfusion_flutter_core/core.dart';

void main() {
  // Register your license here
  SyncfusionLicense.registerLicense(null);
  return runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Barcode Generator Demo'),
          ),
          body: Center(
              child: Container(
            height: 200,
            child: SfBarcodeGenerator(
              value: 'www.syncfusion.com',
              symbology: QRCode(),
              showValue: true,
            ),
          ))),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  syncfusion_flutter_barcodes: ^18.1.55-beta

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:syncfusion_flutter_barcodes/barcodes.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
85
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
95
Overall:
Weighted score of the above. [more]
92
Learn more about scoring.

We analyzed this package on Jun 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Maintenance suggestions

Package is pre-release. (-5 points)

Pre-release versions should be used with caution; their API can change in breaking ways.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
syncfusion_flutter_core ^18.1.55 18.1.55
Transitive dependencies
collection 1.14.12
flutter_web_plugins 0.0.0
meta 1.1.8
platform_detect 1.4.0
plugin_platform_interface 1.0.2
pub_semver 1.4.4
sky_engine 0.0.99
typed_data 1.1.6
url_launcher 5.4.10
url_launcher_macos 0.0.1+7
url_launcher_platform_interface 1.0.7
url_launcher_web 0.1.1+6
utf 0.9.0+5
vector_math 2.0.8