ai_barcode 1.0.4 copy "ai_barcode: ^1.0.4" to clipboard
ai_barcode: ^1.0.4 copied to clipboard

outdated

AiBarcode supports scanner、creator the one-dimensional bar code and two-dimensional bar code(Android 、iOS), and support the Scanner embedded in Flutter pages

example/lib/main.dart

import 'package:ai_barcode_example/full_screen_scanner_page.dart';
import 'package:ai_barcode_example/task_next_page.dart';
import 'package:ai_barcode_example/testing_page.dart';
import 'package:airoute/airoute.dart';
import 'package:flutter/material.dart';

import 'creator_page.dart';
import 'custom_size_scanner_page.dart';
import 'select_scanner_style_page.dart';

void main() => runApp(
  Airoute.createMaterialApp(
    home: App(),
    routes: <String, WidgetBuilder>{
      "/SelectScannerStylePage": (_) => SelectScannerStylePage(),
      "/CustomSizeScannerPage": (_) => CustomSizeScannerPage(),
      "/FullScreenScannerPage": (_) => FullScreenScannerPage(),
      "/TaskNextPage": (_) => TaskNextPage(),
      "/CreatorPage": (_) => CreatorPage(),
      "/TestingPage": (_) => TestingPage(),
    },
  ),
);

///
/// App
class App extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _AppState();
  }
}

///
/// _AppState
class _AppState extends State<App> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("1D barcode/QR code"),
      ),
      body: Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            MaterialButton(
              onPressed: () {
                //跳转页面
                Airoute.pushNamed(
                  routeName: "/TestingPage",
                );
              },
              textColor: Colors.white,
              color: Colors.blue,
              child: Text("Testing Web feature"),
            ),
            MaterialButton(
              onPressed: () {
                //跳转页面=扫描二维码
                Airoute.pushNamed(
                  routeName: "/SelectScannerStylePage",
                );
              },
              textColor: Colors.white,
              color: Colors.blue,
              child: Text("Scan 1D barcode/QR code"),
            ),
            MaterialButton(
              onPressed: () {
                //跳转页面=生成二维码
                Airoute.pushNamed(
                  routeName: "/CreatorPage",
                );
              },
              textColor: Colors.white,
              color: Colors.blue,
              child: Text("Create QR code"),
            ),
          ],
        ),
      ),
    );
  }
}
139
likes
0
pub points
90%
popularity

Publisher

unverified uploader

AiBarcode supports scanner、creator the one-dimensional bar code and two-dimensional bar code(Android 、iOS), and support the Scanner embedded in Flutter pages

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, meta, qr_flutter

More

Packages that depend on ai_barcode