custom_qr_generator_2 0.2.2 copy "custom_qr_generator_2: ^0.2.2" to clipboard
custom_qr_generator_2: ^0.2.2 copied to clipboard

Custom QR generator for Flutter Updated

example/lib/main.dart

import 'package:custom_qr_generator_2/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: Painter(),
            painter: QrPainter(
                data: 'https://youtube.com',
                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(350, 350),
          ),
        ),
      ),
    );
  }
}
1
likes
120
pub points
81%
popularity

Publisher

unverified uploader

Custom QR generator for Flutter Updated

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, zxing_lib

More

Packages that depend on custom_qr_generator_2