custom_qr_generator 0.1.0 copy "custom_qr_generator: ^0.1.0" to clipboard
custom_qr_generator: ^0.1.0 copied to clipboard

outdated

Custom QR generator for Flutter

example/lib/main.dart

import 'package:custom_qr_generator/custom_qr_generator.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Welcome to Flutter'),
        ),
        body: Center(
          child: CustomPaint(
            painter: QrPainter(
                data: "Welcome to Flutter",
                options: const QrOptions(
                    shapes: QrShapes(
                        darkPixel: QrPixelShapeRoundCorners(
                            cornerFraction: .5
                        ),
                        frame: QrFrameShapeRoundCorners(
                            cornerFraction: .25
                        ),
                        ball: QrBallShapeRoundCorners(
                            cornerFraction: .25
                        )
                    ),
                    colors: QrColors(
                        dark: QrColorLinearGradient(
                            colors: [
                              Color.fromARGB(255, 255, 0, 0),
                              Color.fromARGB(255, 0, 0, 255),
                            ],
                            orientation: GradientOrientation.leftDiagonal
                        )
                    )
                )),
            size: const Size(300, 300),
          ),
        ),
      ),
    );
  }
}
24
likes
0
points
761
downloads

Publisher

unverified uploader

Weekly Downloads

Custom QR generator for Flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, zxing_lib

More

Packages that depend on custom_qr_generator